@GroovyASTTransformation(phase = CompilePhase.SEMANTIC_ANALYSIS)
public class SearchDslAstTransformation implements ASTTransformation {
@Override public void visit(ASTNode[] nodes, final SourceUnit source) {
GroovyClassVisitor methodVisitor = new ConfigClosureFinder(source);
for(ClassNode cn : source.getAST().getClasses()){
methodVisitor.visitClass(cn);
}
}