code: public int addAll(KTypeContainer<? extends KType> container) {
      final int size = container.size();
      ensureBufferSpace(size);
  
      for (KTypeCursor<? extends KType> cursor : container) {
        add(cursor.value);
      }
  
      return size;
    }
docs: Adds all elements from another container.