boolean (String shortName, @NotNull PsiElement element) { HighlightDisplayKey key = HighlightDisplayKey.find(shortName); if (key != null) { HighlightDisplayLevel errorLevel = getInstance(element.getProject()).getCurrentProfile().getErrorLevel(key, element); return HighlightDisplayLevel.DO_NOT_SHOW.equals(errorLevel); } return false; }