HighlightSeverity (PsiElement psiElement) { InspectionProfile profile = psiElement == null ? InspectionProfileManager.getInstance().getCurrentProfile() : InspectionProjectProfileManager.getInstance(psiElement.getProject()).getCurrentProfile(); return profile.getErrorLevel(myToolKey, psiElement).getSeverity(); }