diff --git a/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionResultsView.java b/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionResultsView.java index 755b600eef82..026674384cba 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionResultsView.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionResultsView.java @@ -549,8 +549,8 @@ public class InspectionResultsView extends JPanel implements Disposable, Occuren myPreviewEditor.putUserData(PREVIEW_EDITOR_IS_REUSED_KEY, true); myPreviewEditor.getFoldingModel().runBatchFoldingOperation(() -> { myPreviewEditor.getFoldingModel().clearFoldRegions(); - myPreviewEditor.getMarkupModel().removeAllHighlighters(); }); + myPreviewEditor.getMarkupModel().removeAllHighlighters(); } else { myPreviewEditor = (EditorEx)EditorFactory.getInstance().createEditor(document, myProject, file.getVirtualFile(), true);