void () { myEditor.getMarkupModel().removeAllHighlighters(); for (Inlay inlay : myEditor.getInlayModel().getInlineElementsInRange(0, myEditor.getDocument().getTextLength())) { Disposer.dispose(inlay); } if (myCustomizer != null) { myCustomizer.removeCustomizations(myEditor); } }