void () { for (Editor editor : myActiveEditors) { editor.getMarkupModel().removeAllHighlighters(); MarkupModel documentMarkupModel = DocumentMarkupModel.forDocument(editor.getDocument(), myProject, false); if (documentMarkupModel != null) { documentMarkupModel.removeAllHighlighters(); } } }