void (final @NotNull Color value) { StringBuilder sb = new StringBuilder(); sb.append(" r:").append(value.getRed()); sb.append(" g:").append(value.getGreen()); sb.append(" b:").append(value.getBlue()); sb.append(" a:").append(value.getAlpha()); sb.append(" argb:0x"); String hex = Integer.toHexString(value.getRGB()); sb.append("0".repeat(8 - hex.length())); sb.append(StringUtil.toUpperCase(hex)); if (value instanceof UIResource) sb.append(" UIResource"); if (value instanceof JBColor) { String name = ((JBColor)value).getName(); if (!StringUtil.isEmpty(name)) { sb.append(" name: ").append(name); } } setText(sb.toString()); setIcon(createColorIcon(value)); }