boolean (PsiScopeProcessor processor) { if (!ResolveUtilKt.shouldProcessMethods(processor)) return true; final AntIntrospector introspector = AntDomExtender.getIntrospector(myAntClass); if (introspector == null) { return true; } final String expectedName = ResolveUtil.getNameHint(processor); final PsiType mapType = TypesUtil.createType(GroovyCommonClassNames.JAVA_UTIL_LINKED_HASH_MAP, myFile); final PsiType stringType = TypesUtil.createType(CommonClassNames.JAVA_LANG_STRING, myFile); final PsiType closureType = TypesUtil.createType(GroovyCommonClassNames.GROOVY_LANG_CLOSURE, myFile); for (String name : Collections.list(introspector.getNestedElements())) { if (expectedName != null && !expectedName.equals(name)) { continue; } Class<?> antClass = introspector.getElementType(name); for (LightMethodBuilder method : methods(myFile, name, antClass, mapType, stringType, closureType)) { if (!processor.execute(method, ResolveState.initial())) { return false; } } } return true; }