boolean (@NotNull Collection<? extends Tools> tools, @NotNull GlobalInspectionContextImpl context, @NotNull InspectionRVContentProvider contentProvider) { for (Tools currentTools : tools) { for (ScopeToolState state : contentProvider.getTools(currentTools)) { InspectionToolWrapper<?,?> toolWrapper = state.getTool(); ThreeState hasReportedProblems = context.getPresentation(toolWrapper).hasReportedProblems(); if (hasReportedProblems == ThreeState.NO) continue; if (hasReportedProblems == ThreeState.YES || ReadAction.compute(() -> contentProvider.checkReportedProblems(context, toolWrapper))) { return true; } } } return false; }