code: public TypeVariable[] typeParameters() {
          if (env.legacyDoclet) {
              return new TypeVariable[0];
          }
          TypeVariable res[] = new TypeVariable[sym.type.getTypeArguments().length()];
          TypeMaker.getTypes(env, sym.type.getTypeArguments(), res);
          return res;
      }
docs: Return the formal type parameters of this method or constructor.
  Return an empty array if there are none.