boolean (PsiElement resolved) { if (resolved instanceof PsiDocCommentOwner) { return ((PsiDocCommentOwner)resolved).isDeprecated(); } if (resolved instanceof PsiModifierListOwner && PsiImplUtil.isDeprecatedByAnnotation((PsiModifierListOwner)resolved)) { return true; } return false; }