boolean (@NotNull PsiFile file) { HighlightingLevelManager highlightingLevelManager = HighlightingLevelManager.getInstance(file.getProject()); // for ESSENTIAL mode, it depends on the current phase: when we run regular LocalInspectionPass then don't, when we run Save All handler then run everything return highlightingLevelManager != null && highlightingLevelManager.shouldInspect(file) && !highlightingLevelManager.runEssentialHighlightingOnly(file); }