CellAppearanceEx (@NotNull final ContentFolder folder) { if (folder instanceof SourceFolder) { return formatRelativePath(folder, PlatformIcons.FOLDER_ICON); } else if (folder instanceof ExcludeFolder) { return formatRelativePath(folder, IconLoader.getDisabledIcon(PlatformIcons.FOLDER_ICON)); } else { throw new RuntimeException(folder.getClass().getName()); } }