HighlightDisplayLevel (@NotNull PsiElement context) { final InspectionProfile inspectionProfile = InspectionProjectProfileManager.getInstance(context.getProject()).getCurrentProfile(); final HighlightDisplayKey displayKey = HighlightDisplayKey.find(HtmlNonExistentInternetResourceInspection.SHORT_NAME); return inspectionProfile.getErrorLevel(displayKey, context); }