void (@NotNull MarkupModel model, @NotNull PluginDescriptor pluginDescriptor) { ClassLoader pluginClassLoader = pluginDescriptor.getPluginClassLoader(); for (RangeHighlighter highlighter: model.getAllHighlighters()) { if (!(highlighter instanceof RangeHighlighterEx ex) || !ex.isPersistent() || pluginClassLoader instanceof PluginAwareClassLoader && isHighlighterFromPlugin(highlighter, pluginClassLoader)) { model.removeHighlighter(highlighter); } } }