void (@NotNull JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.customizeCellRenderer(tree, value, selected, expanded, leaf, row, hasFocus); final ContentEntryEditor editor = myTreeEditor.getContentEntryEditor(); if (editor != null) { final Object userObject = ((DefaultMutableTreeNode)value).getUserObject(); if (userObject instanceof NodeDescriptor) { final Object element = ((NodeDescriptor<?>)userObject).getElement(); if (element instanceof FileElement) { final VirtualFile file = ((FileElement)element).getFile(); if (file != null && file.isDirectory()) { final ContentEntry contentEntry = editor.getContentEntry(); if (contentEntry != null) { final String prefix = getPresentablePrefix(contentEntry, file); if (!prefix.isEmpty()) { append(" (" + prefix + ")", new SimpleTextAttributes(SimpleTextAttributes.STYLE_PLAIN, JBColor.GRAY)); } setIcon(updateIcon(contentEntry, file, getIcon())); } } } } } }