@Override
  protected void customizeCellRenderer(@NotNull JList<?> list, Object value, int index, boolean selected, boolean focused) {
    Font font = list.getFont();
    @NlsSafe String text = value == null ? "" : value.toString();
    append(text);
    if (value instanceof FontInfo info) {
      Integer size = getFontSize();
      Font f = info.getFont(size != null ? size : font.getSize());
      if (f.canDisplayUpTo(text) == -1) {
        setFont(f);
      }
      else {
        append("  " + IdeBundle.message("font.info.renderer.non.latin"), SimpleTextAttributes.GRAYED_ATTRIBUTES);
      }
    }
  }
@Override
  protected void customizeCellRenderer(@NotNull JList<?> list, Object value, int index, boolean selected, boolean focused)