void (Graphics g) { myEditor.measureTypingLatency(); Graphics2D gg = (Graphics2D)g; if (myEditor.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); myEditor.paint(gg); if (origTx != null) { gg.setTransform(origTx); } Project project = myEditor.getProject(); if (project != null) { EditorsSplitters.Companion.stopOpenFilesActivity(project); } }