code: @SafeVarargs
    /* #end */
    public final int addAll(KType... elements) {
      ensureCapacity(elements.length);
      int count = 0;
      for (KType e : elements) {
        if (add(e)) {
          count++;
        }
      }
      return count;
    }
docs: /* #if ($TemplateOptions.KTypeGeneric)