void (@NotNull MavenWorkspaceConfigurator.MutableModelContext context) { Map<MavenId, List<String>> mavenProjectToModuleNamesCache = new HashMap<>(); for (MavenProjectWithModules<ModuleEntity> each : SequencesKt.asIterable(context.getMavenProjectsWithModules())) { List<String> moduleNames = ContainerUtil.mapNotNull(each.getModules(), it -> it.getType().getContainsCode() ? it.getModule().getName() : null); mavenProjectToModuleNamesCache.put(each.getMavenProject().getMavenId(), moduleNames); } var changedOnlyProjects = SequencesKt.mapNotNull(context.getMavenProjectsWithModules(), it -> { return it.getChanges().hasChanges() ? it.getMavenProject() : null; }); var map = new HashMap<MavenProject, List<String>>(); collectProcessorModuleNames(SequencesKt.asIterable(changedOnlyProjects), moduleName -> mavenProjectToModuleNamesCache.get(moduleName), map); ANNOTATION_PROCESSOR_MODULE_NAMES.set(context, map); }