@Override
    protected @Nullable TextAttributes getNavigationItemAttributes(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;
    }
@Override
    protected @Nullable TextAttributes getNavigationItemAttributes(Object value)