Component (@NotNull JTree tree, @Nullable Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean focused) { Component component = super.getTreeCellRendererComponent(tree, value, selected, expanded, leaf, row, focused); if (!selected) setForeground(COLOR); setIcon(ICON); return component; }