void (@NotNull Project project, @NotNull GlobalSearchScope resolveScope, @NotNull List<? super String> instanceClasses, @NotNull List<? super String> staticClasses, @NlsSafe @NotNull String packageName) { PsiPackage aPackage = JavaPsiFacade.getInstance(project).findPackage(packageName); if (aPackage == null) return; for (PsiDirectory directory : aPackage.getDirectories(resolveScope)) { PsiFile file = directory.findFile(DGMUtil.ORG_CODEHAUS_GROOVY_RUNTIME_EXTENSION_MODULE); if (!(file instanceof PropertiesFile)) continue; AstLoadingFilter.forceAllowTreeLoading(file, () -> { IProperty inst = ((PropertiesFile)file).findPropertyByKey("extensionClasses"); IProperty stat = ((PropertiesFile)file).findPropertyByKey("staticExtensionClasses"); if (inst != null) collectClasses(inst, instanceClasses); if (stat != null) collectClasses(stat, staticClasses); }); } }