void (SimpleColoredComponent renderer, Object value) { int style = SimpleTextAttributes.STYLE_PLAIN; Color color = null; Icon icon = null; String name = null; String comment = null; boolean hidden = false; boolean valid = true; if (value instanceof FileNode node) { icon = node.getIcon(); name = node.getName(); comment = node.getComment(); hidden = node.isHidden(); valid = node.isValid(); } else if (value instanceof VirtualFile file) { name = file.getName(); hidden = isFileHidden(file); valid = file.isValid(); } else if (value != null) { name = value.toString(); //NON-NLS color = GRAYED; } if (!valid) style |= SimpleTextAttributes.STYLE_STRIKEOUT; if (hidden) color = HIDDEN; renderer.setIcon(!hidden || icon == null ? icon : getTransparentIcon(icon)); SimpleTextAttributes attributes = new SimpleTextAttributes(style, color); if (name != null) renderer.append(name, attributes); if (comment != null) renderer.append(comment, attributes); }