default int getAscent() {
    // The actual implementation in EditorImpl is a bit more complex, but this gives an idea of how it's constructed.
    return ReadAction.compute(() -> (getContentComponent().getFontMetrics(getColorsScheme().getFont(EditorFontType.PLAIN)).getAscent() *
                                     getColorsScheme().getLineSpacing())).intValue();
  }
default int getAscent()