String (@NotNull MavenProject mavenProject, @NotNull List<Module> processorModules) { StringJoiner annotationProcessorPath = new StringJoiner(File.pathSeparator); Consumer<String> resultAppender = path -> annotationProcessorPath.add(FileUtil.toSystemDependentName(path)); for (MavenArtifact artifact : mavenProject.getExternalAnnotationProcessors()) { resultAppender.consume(artifact.getPath()); } for (Module module : processorModules) { OrderEnumerator enumerator = orderEntries(module).withoutSdk().productionOnly().runtimeOnly().recursively(); for (String url : enumerator.classes().getUrls()) { resultAppender.consume(JpsPathUtil.urlToPath(url)); } } return annotationProcessorPath.toString(); }