code: public void markDeprecated(Symbol sym, List<JCAnnotation> annotations, Env<AttrContext> env) {
          // In general, we cannot fully process annotations yet,  but we
          // can attribute the annotation types and then check to see if the
          // @Deprecated annotation is present.
          attr.attribAnnotationTypes(annotations, env);
          handleDeprecatedAnnotations(annotations, sym);
      }
docs: Mark sym deprecated if annotations contain @Deprecated annotation.