void () { final SourceFolder[] sourceFolders = getContentEntry().getSourceFolders(); MultiMap<JpsModuleSourceRootType<?>, SourceFolder> folderByType = new MultiMap<>(); for (SourceFolder folder : sourceFolders) { if (!folder.isSynthetic()) { folderByType.putValue(folder.getRootType(), folder); } } Insets insets = JBUI.insetsBottom(10); GridBagConstraints constraints = new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 1.0, 0.0, GridBagConstraints.NORTH, GridBagConstraints.HORIZONTAL, insets, 0, 0); for (ModuleSourceRootEditHandler<?> editor : myModuleSourceRootEditHandlers) { Collection<SourceFolder> folders = folderByType.get(editor.getRootType()); if (folders.isEmpty()) continue; List<ContentFolderRef> folderRefs = ContainerUtil.map(folders, ContentFolderRefImpl::new); final JComponent sourcesComponent = createFolderGroupComponent(editor.getRootsGroupTitle(), folderRefs, editor.getRootsGroupColor(), editor); add(sourcesComponent, constraints); } ExcludeFolder[] excluded = getContentEntry().getExcludeFolders(); if (excluded.length > 0) { List<ContentFolderRef> folderRefs = ContainerUtil.map(excluded, ContentFolderRefImpl::new); final JComponent excludedComponent = createFolderGroupComponent(ProjectBundle.message("module.paths.excluded.group"), folderRefs, EXCLUDED_COLOR, null); this.add(excludedComponent, constraints); } }