boolean (@NotNull PsiElement psiElement, @Nullable PsiElement context) { if (psiElement instanceof PsiModifierListOwner) { ThreeState byAnnotation = isDeprecatedByAnnotation((PsiModifierListOwner)psiElement, context); if (byAnnotation != ThreeState.UNSURE) { return byAnnotation.toBoolean(); } } if (psiElement instanceof PsiDocCommentOwner) { return ((PsiDocCommentOwner)psiElement).isDeprecated(); } if (psiElement instanceof PsiJavaDocumentedElement) { return PsiImplUtil.isDeprecatedByDocTag((PsiJavaDocumentedElement)psiElement); } return false; }