void (@NotNull JList list, Object value, int index, boolean selected, boolean hasFocus) { clear(); PaletteItem item = (PaletteItem)value; boolean enabled = item.isEnabled(); setEnabled(enabled); if (enabled) { setIcon(item.getIcon()); } else { setIcon(item.getIcon() == null ? null : IconLoader.getDisabledIcon(item.getIcon())); } String title = item.getTitle(); String tooltip = item.getTooltip(); String version = myDesigner.getVersionLabel(item.getVersion()); String deprecatedIn = item.getDeprecatedIn(); boolean deprecated = myDesigner.isDeprecated(deprecatedIn); append(title, deprecated ? DEPRECATED_ATTRIBUTES : SimpleTextAttributes.REGULAR_ATTRIBUTES); if (!version.isEmpty()) { version = "<sup><i>" + version + "</i></sup>"; } if (tooltip != null) { String deprecatedMessage = ""; if (deprecated) { deprecatedMessage = DesignerBundle.message("palette.item.deprecated.message", String.format("%1$s", myDesigner.getVersionLabel(deprecatedIn))); String hint = item.getDeprecatedHint(); if (!StringUtil.isEmpty(hint)) { deprecatedMessage += hint; } deprecatedMessage += "</b><br><br>"; } tooltip = DesignerBundle .message("palette.item.deprecated.tooltip", StringUtil.escapeXmlEntities(title), version, deprecatedMessage, tooltip); } setToolTipText(tooltip); }