void (@Nullable final RadComponent target, boolean selected) { clear(); final SimpleTextAttributes baseAttributes = selected ? SimpleTextAttributes.SELECTED_SIMPLE_CELL_ATTRIBUTES : SimpleTextAttributes.SIMPLE_CELL_ATTRIBUTES; if (target == null) { append(UIDesignerBundle.message("component.none"), baseAttributes); return; } setIcon(ComponentTree.getComponentIcon(target)); String binding = target.getBinding(); if (binding != null) { append(binding, baseAttributes); } else { final String componentTitle = target.getComponentTitle(); if (componentTitle != null && componentTitle.length() > "\"\"".length()) { append(componentTitle, baseAttributes); } else { @NlsSafe String name = target.getComponentClass().getSimpleName(); append(name, selected ? SimpleTextAttributes.SELECTED_SIMPLE_CELL_ATTRIBUTES : SimpleTextAttributes.GRAYED_ATTRIBUTES); } } }