private boolean isDeprecated() {
    try {
      PsiElement psiElement = getPsiElement();
      return psiElement instanceof PsiDocCommentOwner
             && psiElement.isValid()
             && ((PsiDocCommentOwner)psiElement).isDeprecated();
    }
    catch (IndexNotReadyException e) {
      return false;
    }
  }
private boolean isDeprecated()