boolean (PsiElement psiRoot) { final InspectionProfile profile = InspectionProjectProfileManager.getInstance(psiRoot.getProject()).getCurrentProfile(); HighlightDisplayKey key = HighlightDisplayKey.find(myInspectionKey); return key != null && profile.isToolEnabled(key, psiRoot); }