void (@NotNull PsiFile psiFile, @NotNull MarkupModelEx markupModel, boolean isWholeFileToolsPass, @NotNull InspectionProfileWrapper profileWrapper) { data.clear(); for (RangeHighlighter highlighter : markupModel.getAllHighlighters()) { HighlightInfo info = HighlightInfo.fromRangeHighlighter(highlighter); if (info != null) { Object toolId = info.toolId; if (toolId instanceof String inspectionToolId && isWholeFileTool(inspectionToolId, profileWrapper, psiFile) == isWholeFileToolsPass) { List<HighlightInfo> infos = getList(toolId, psiFile); synchronized (infos) { infos.add(info); } } } } for (Map.Entry<Pair<Object, PsiFile>, List<HighlightInfo>> entry : data.entrySet()) { ContainerUtil.quickSort(entry.getValue(), UpdateHighlightersUtil.BY_ACTUAL_START_OFFSET_NO_DUPS); } }