public static yieldAncestors<MethodDeclaration> untilContainingMethod() {
return new ByNodeClass<>(MethodDeclaration.class);
}
public static yieldAncestors<AbstractTypeDeclaration> untilContainingType() {
return new ByNodeClass<>(AbstractTypeDeclaration.class);
<BUG>}
@SuppressWarnings({ "unchecked", "rawtypes" }) //</BUG>
public static <N extends ASTNode> yieldAncestors untilNode(final N... ¢) {
return new ByNodeInstances<>(as.list(¢));
}

public static yieldAncestors<MethodDeclaration> untilContainingMethod() {
return new ByNodeClass<>(MethodDeclaration.class);
}
public static yieldAncestors<AbstractTypeDeclaration> untilContainingType() {
return new ByNodeClass<>(AbstractTypeDeclaration.class);
}
public static yieldAncestors<Block> untilContainingBlock() {
return new ByNodeClass<>(Block.class);
}
@SuppressWarnings({ "unchecked", "rawtypes" }) //
public static <N extends ASTNode> yieldAncestors untilNode(final N... ¢) {
return new ByNodeInstances<>(as.list(¢));
}
