Set<String> (@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; }