code: public static com.sun.javadoc.Type[] getTypes(DocEnv env, List<Type> ts,
                                                    com.sun.javadoc.Type res[]) {
          int i = 0;
          for (Type t : ts) {
              res[i++] = getType(env, t);
          }
          return res;
      }
docs: Like the above version, but use and return the array given.