boolean (@NotNull Project project, Editor editor, PsiFile file) { final InspectionProjectProfileManager profileManager = InspectionProjectProfileManager.getInstance(project); InspectionProfile inspectionProfile = profileManager.getCurrentProfile(); InspectionToolWrapper toolWrapper = inspectionProfile.getInspectionTool(myToolId, project); return toolWrapper == null || !toolWrapper.getDefaultLevel().isNonSwitchable(); }