void (@NotNull FileEditor fileEditor, int group) { ThreadingAssertions.assertEventDispatchThread(); List<HighlightInfo> infos = fileEditor.getUserData(FILE_LEVEL_HIGHLIGHTS); if (infos == null || infos.isEmpty()) { return; } List<HighlightInfo> infosToRemove = new ArrayList<>(infos.size()); for (HighlightInfo info : infos) { if (info.getGroup() == group || group == ANY_GROUP) { JComponent component = info.getFileLevelComponent(fileEditor); if (component != null) { getFileEditorManager().removeTopComponent(fileEditor, component); info.removeFileLeverComponent(fileEditor); } RangeHighlighterEx highlighter = info.highlighter; if (highlighter != null) { highlighter.dispose(); } infosToRemove.add(info); } } infos.removeAll(infosToRemove); if (LOG.isDebugEnabled()) { LOG.debug("cleanFileLevelHighlights group:" +group+ "; infosToRemove:" + infosToRemove); } }