@DirtyUI
  @Override
  public void paintComponent(Graphics g) {
    editor.measureTypingLatency();

    Graphics2D gg = (Graphics2D)g;
    if (editor.useEditorAntialiasing()) {
      EditorUIUtil.setupAntialiasing(gg);
    }
    else {
      UISettings.setupAntialiasing(gg);
    }
    gg.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, UISettings.getEditorFractionalMetricsHint());
    AffineTransform origTx = PaintUtil.alignTxToInt(gg, PaintUtil.insets2offset(getInsets()), true, false, RoundingMode.FLOOR);
    editor.paint(gg);
    if (origTx != null) {
      gg.setTransform(origTx);
    }

    Project project = editor.getProject();
    if (project != null) {
      EditorsSplittersKt.stopOpenFilesActivity(project);
    }
  }
@DirtyUI
  @Override
  public void paintComponent(Graphics g)