void (LocalInspectionTool inspection) { final HighlightDisplayKey displayKey = HighlightDisplayKey.find(inspection.getShortName()); final InspectionProfileImpl currentProfile = ProjectInspectionProfileManager.getInstance(getProject()).getCurrentProfile(); currentProfile.setErrorLevel(displayKey, HighlightDisplayLevel.WARNING, getProject()); }