Set<Module> (@NotNull Project project) { return CachedValuesManager.getManager(project).getCachedValue(project, () -> { Set<Module> modules = new HashSet<>(); ProjectFileIndex projectFileIndex = ProjectFileIndex.getInstance(project); FileTypeIndex.processFiles(JavaFxFileTypeFactory.getFileType(), file -> { if (JavaFxFileTypeFactory.isFxml(file)) { modules.add(projectFileIndex.getModuleForFile(file)); } return true; }, GlobalSearchScope.projectScope(project)); return CachedValueProvider.Result.create(modules, FxmlPresenceListener.getModificationTracker(project)); }); }