void (Iterable<MavenProject> projects, Function<@NotNull MavenId, @Nullable List<String>> moduleNameByProjectId, Map<MavenProject, List<String>> result) { for (var mavenProject : projects) { if (!shouldEnableAnnotationProcessors(mavenProject)) continue; Element config = getConfig(mavenProject, "annotationProcessorPaths"); if (config == null) continue; for (MavenArtifactInfo info : getProcessorArtifactInfos(config)) { var mavenId = new MavenId(info.getGroupId(), info.getArtifactId(), info.getVersion()); var processorModuleNames = moduleNameByProjectId.apply(mavenId); if (processorModuleNames != null) { result.computeIfAbsent(mavenProject, __ -> new ArrayList<>()).addAll(processorModuleNames); } } } }