for (Resource resource : resources) {
// ignore not readable classes and closures
if(!resource.isReadable() || resource.getFilename().contains("$_")) continue;
try {
MetadataReader metadataReader = readerFactory.getMetadataReader(new GrailsResource(resource));
AnnotationMetadata annotationMetadata = metadataReader.getAnnotationMetadata();
if(annotationMetadata.hasAnnotation(AstTransformer.class.getName()) || annotationMetadata.hasAnnotation(org.codehaus.groovy.grails.compiler.injection.AstTransformer.class.getName())) {
String className = metadataReader.getClassMetadata().getClassName();
Class<?> injectorClass = classLoader.loadClass(className);
if(injectorClasses.contains(injectorClass)) continue;