}
public <T extends ASTNode> List<T> getAllOfType(Program program,
final String className) {
final List<T> list = new ArrayList<T>();
program.accept(new ApplyAll() {
@SuppressWarnings("unchecked")
protected boolean apply(ASTNode node) {
if (node.getClass().getName().equals(className)) {
list.add((T) node);
}