private static Set<String> getSourceRoots(@NotNull ContentRootData contentRoot) {
    Set<String> sourceRoots = CollectionFactory.createFilePathSet();
    for (ExternalSystemSourceType externalSrcType : ExternalSystemSourceType.values()) {
      final JpsModuleSourceRootType<?> type = getJavaSourceRootType(externalSrcType);
      if (type == null) continue;
      for (SourceRoot path : contentRoot.getPaths(externalSrcType)) {
        if (path == null) continue;
        sourceRoots.add(path.getPath());
      }
    }
    return sourceRoots;
  }
private static Set<String> getSourceRoots(@NotNull ContentRootData contentRoot)