code: public boolean isDeprecated0(Element e) {
          if (!utils.getDeprecatedTrees(e).isEmpty()) {
              return true;
          }
          JavacTypes jctypes = ((DocEnvImpl)configuration.docEnv).toolEnv.typeutils;
          TypeMirror deprecatedType = utils.getDeprecatedType();
          for (AnnotationMirror anno : e.getAnnotationMirrors()) {
              if (jctypes.isSameType(anno.getAnnotationType().asElement().asType(), deprecatedType))
                  return true;
          }
          return false;
      }
docs: /*
  TODO: This method exists because of a bug in javac which does not
  handle "@deprecated tag in package-info.java", when this issue
  is fixed this method and its uses must be jettisoned.