public static boolean isMonospaced(@NotNull String fontName) {
    Boolean result = monospacedMapping.get(fontName);
    if (result == null) {
      FontMetrics metrics = FontInfo.getFontMetrics(new Font(fontName, Font.PLAIN, FontPreferences.DEFAULT_FONT_SIZE),
                                                    new FontRenderContext(null, false, false));
      result = metrics.charWidth('l') == metrics.charWidth('W');
      monospacedMapping.put(fontName, result);
    }
    return result;
  }
public static boolean isMonospaced(@NotNull String fontName)