Merge remote-tracking branch 'origin/master' into develar/is
[idea/community.git] / platform / lang-impl / src / com / intellij / codeInspection / ui / InspectionResultsView.java
index 0cc62e95edc0e0444613f186366250933128a67d..aa1171d35f890c2064ed904a1d3770fc48c2cf82 100644 (file)
@@ -759,14 +759,16 @@ public class InspectionResultsView extends JPanel implements Disposable, Occuren
         final HighlightDisplayKey key = HighlightDisplayKey.find(defaultToolWrapper.getShortName());
         for (ScopeToolState state : myProvider.getTools(currentTools)) {
           InspectionToolWrapper toolWrapper = state.getTool();
-          ReadAction.run(() -> {
-            if (myProvider.checkReportedProblems(myGlobalInspectionContext, toolWrapper)) {
-              addTool(toolWrapper,
-                      profile.getErrorLevel(key, state.getScope(myProject), myProject),
-                      isGroupedBySeverity,
-                      singleInspectionRun);
-            }
-          });
+          if (ReadAction.compute(() -> myProvider.checkReportedProblems(myGlobalInspectionContext, toolWrapper))) {
+            //ReadAction.run(
+            //  () ->
+                addTool(toolWrapper,
+                                         profile.getErrorLevel(key, state.getScope(myProject), myProject),
+                                         isGroupedBySeverity,
+                                         singleInspectionRun)
+            //)
+            ;
+          }
         }
       }
     }