@NotNull
  private static FontMetrics getFontMetrics(Font font, @NotNull Editor editor) {
    return FontInfo.getFontMetrics(font, FontInfo.getFontRenderContext(editor.getContentComponent()));
  }
@NotNull
  private static FontMetrics getFontMetrics(Font font, @NotNull Editor editor)