code: public UnionTypeBuilder addAlternates(ImmutableList<JSType> list) {
      for (int i = 0; i < list.size(); i++) {
        addAlternate(list.get(i));
      }
      return this;
    }
docs: adding a union as an alternate.