void (final MarkupModel markupModel, final TreeMap<Integer, LineData> executableLines, final CoverageSuitesBundle coverageSuite, final int lineNumber, final int updatedLineNumber, @Nullable String className) { ApplicationManager.getApplication().invokeLater(() -> { var editor = myEditor; var document = myDocument; if (editor == null || editor.isDisposed() || document == null) return; if (updatedLineNumber < 0 || updatedLineNumber >= document.getLineCount()) return; if (lineNumber < 0) return; var highlighter = createRangeHighlighter(markupModel, executableLines, className, lineNumber, updatedLineNumber, coverageSuite); registerOrDisposeHighlighter(highlighter); var backgroundHighlighter = createBackgroundHighlighter(markupModel, executableLines, lineNumber, updatedLineNumber); if (backgroundHighlighter != null) { registerOrDisposeHighlighter(backgroundHighlighter); } }); }