diff --git a/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java b/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java index 577300feeaf5..89dfa6972cdd 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java @@ -682,7 +682,7 @@ public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp } } if (!ApplicationManager.getApplication().isUnitTestMode()) { - if (myView == null && !InspectionResultsView.hasProblems(globalTools, this, createContentProvider())) { + if (myView == null && !ReadAction.compute(() -> InspectionResultsView.hasProblems(globalTools, this, createContentProvider())).booleanValue()) { return; } createViewIfNeed();