void (@NotNull SimpleColoredComponent item, MyFontItem value, int index, boolean isSelected, boolean hasFocus) { if (value != null) { if (value instanceof MyWarningItem) { item.append(value.getFamilyName(), SimpleTextAttributes.ERROR_ATTRIBUTES); return; } SimpleTextAttributes attributes = SimpleTextAttributes.REGULAR_ATTRIBUTES; if (index > -1 && value.myFont != null) { if (value.myFontCanDisplayName) { item.setFont(value.myFont); } else if (myIsPrimary) { attributes = SimpleTextAttributes.EXCLUDED_ATTRIBUTES; } } else { item.setFont(JBUI.Fonts.label()); } item.append(value.getFamilyName(), attributes); } }