docs: @SuppressWarnings("unchecked")
    public T[] getSamples() {
      if (itemsSeen_ == 0) {
        return null;
      }
  
      final Class<?> clazz = data_.get(0).getClass();
      return data_.toArray((T[]) Array.newInstance(clazz, 0));
    }