public static Collection<File> getOutputPathsWithDependents(final ModuleChunk chunk) {
    final boolean forTests = chunk.containsTests();
    final Set<File> sourcePaths = new LinkedHashSet<>();
    processModulesRecursively(chunk, JpsJavaClasspathKind.compile(forTests),
                              module -> addFile(sourcePaths, JpsJavaExtensionService.getInstance().getOutputUrl(module, forTests)));
    return sourcePaths;
  }
public static Collection<File> getOutputPathsWithDependents(final ModuleChunk chunk)