private static void addOutputModuleRoots(@Nullable ExternalSourceDirectorySet directorySet,
                                           @NotNull Collection<? super String> result, boolean isGradleAwareMake) {
    if (directorySet == null) return;
    if (isGradleAwareMake) {
      for (File outputDir : directorySet.getGradleOutputDirs()) {
        result.add(VfsUtilCore.pathToUrl(outputDir.getPath()));
      }
    }
    else if (!directorySet.isCompilerOutputPathInherited()) {
      result.add(VfsUtilCore.pathToUrl(directorySet.getOutputDir().getPath()));
    }
  }
private static void addOutputModuleRoots(@Nullable ExternalSourceDirectorySet directorySet,
                                           @NotNull Collection<? super String> result, boolean isGradleAwareMake)