private void paintAnnotationLine(Graphics g, TextAnnotationGutterProvider gutterProvider, int line, int x, int y) {
    var text = gutterProvider.getLineText(line, myEditor);
    if (!StringUtil.isEmpty(text)) {
      g.setColor(myEditor.getColorsScheme().getColor(gutterProvider.getColor(line, myEditor)));
      var style = gutterProvider.getStyle(line, myEditor);
      var font = getFontForText(text, style);
      g.setFont(font);
      int offset = 0;
      if (gutterProvider.useMargin()) {
        if (gutterProvider.getLeftMargin() >= 0) {
          offset = gutterProvider.getLeftMargin();
        }
        else {
          offset = getGapBetweenAnnotations() / 2;
        }
      }
      g.drawString(text, offset + x, y + myEditor.getAscent());
    }
  }
private void paintAnnotationLine(Graphics g, TextAnnotationGutterProvider gutterProvider, int line, int x, int y)