void (@NotNull RangeHighlighterEx highlighter) { HighlightInfo info = HighlightInfo.fromRangeHighlighter(highlighter); if (info == null) return; String description = info.getDescription(); if (errorDescription.equals(description)) { errorRemoved.set(true); List<ProgressableTextEditorHighlightingPass> passes = myDaemonCodeAnalyzer.getPassesToShowProgressFor(document); GeneralHighlightingPass ghp = null; for (TextEditorHighlightingPass pass : passes) { if (pass instanceof GeneralHighlightingPass && pass.getId() == Pass.UPDATE_ALL) { assert ghp == null : ghp; ghp = (GeneralHighlightingPass)pass; } } assertNotNull(ghp); boolean finished = ghp.isFinished(); assertFalse(finished); } }