void (@NotNull JList list, Object value, int index, boolean selected, boolean hasFocus) { FontDescriptor descriptor = (FontDescriptor) value; clear(); @NlsSafe String font = descriptor.getSwingFont(); append(font, selected ? SimpleTextAttributes.SELECTED_SIMPLE_CELL_ATTRIBUTES : SimpleTextAttributes.SIMPLE_CELL_ATTRIBUTES); append(" (" + fontToString(UIManager.getFont(font)) + ")", selected ? SimpleTextAttributes.SELECTED_SIMPLE_CELL_ATTRIBUTES : SimpleTextAttributes.GRAYED_ATTRIBUTES); }