code: public void enterTypeAnnotations(List<JCAnnotation> annotations, Env<AttrContext> env,
              Symbol s, DiagnosticPosition deferPos, boolean isTypeParam)
      {
          Assert.checkNonNull(s, "Symbol argument to actualEnterTypeAnnotations is nul/");
          JavaFileObject prev = log.useSource(env.toplevel.sourcefile);
          DiagnosticPosition prevLintPos = null;
  
          if (deferPos != null) {
              prevLintPos = deferredLintHandler.setPos(deferPos);
          }
          try {
              annotateNow(s, annotations, env, true, isTypeParam);
          } finally {
              if (prevLintPos != null)
                  deferredLintHandler.setPos(prevLintPos);
              log.useSource(prev);
          }
      }
docs: Attribute the list of annotations and enter them onto s.