void (@NotNull SimpleColoredComponent item, Object value, int index, boolean isSelected, boolean hasFocus) { if (value instanceof FontInfo info) { item.setFont(index == -1 ? JBUI.Fonts.label() : info.getFont()); item.append(info.toString()); } else if (value instanceof Model.NoFontItem nfi) { item.append(nfi.toString()); } }