private int calcLineNumbersAreaWidth(@NotNull String maxLineNumberText) {
    return FontLayoutService.getInstance().stringWidth(getFontMetrics(getFontForLineNumbers()), maxLineNumberText);
  }
private int calcLineNumbersAreaWidth(@NotNull String maxLineNumberText)