void (@NotNull ContentEntry contentEntry, @NotNull ContentRootData contentRoot) { SourceFolder[] sourceFolders = contentEntry.getSourceFolders(); if (sourceFolders.length == 0) return; Set<String> sourceRoots = getSourceRoots(contentRoot); for (SourceFolder sourceFolder : sourceFolders) { String url = sourceFolder.getUrl(); String path = VfsUtilCore.urlToPath(url); if (!sourceRoots.contains(path)) { contentEntry.removeSourceFolder(sourceFolder); } } }