void (final ColorDescriptor value, final boolean selected) { myColorDescriptor = value; clear(); setIcon(AllIcons.Nodes.EmptyNode); setBackground(selected ? UIUtil.getTableSelectionBackground(true) : UIUtil.getTableBackground()); if (myColorDescriptor != null) { @NlsSafe String fragment = myColorDescriptor.toString(); append(fragment, selected ? SimpleTextAttributes.SELECTED_SIMPLE_CELL_ATTRIBUTES : SimpleTextAttributes.SIMPLE_CELL_ATTRIBUTES); } }