boolean (@NotNull HighlightDisplayKey displayKey) { if (!(myFile instanceof PsiJavaFile) || myUnusedSymbolInspection == null) { return false; } InspectionProfile profile = getCurrentProfile(myFile); return profile.isToolEnabled(displayKey, myFile) && HighlightingLevelManager.getInstance(myProject).shouldInspect(myFile) && !HighlightingLevelManager.getInstance(myProject).runEssentialHighlightingOnly(myFile); }