TextAttributes (Object value) { TextAttributes attrs = super.getNavigationItemAttributes(value); if (value instanceof PsiDocCommentOwner && !((PsiDocCommentOwner)value).isDeprecated()) { PsiClass psiClass = ((PsiMember)value).getContainingClass(); if (psiClass != null && psiClass.isDeprecated()) { return TextAttributes.merge(attrs, super.getNavigationItemAttributes(psiClass)); } } return attrs; }