code: public static <T> Stream<T> toIterator(@javax.annotation.Nonnull final Iterator<T> iterator) {
      return StreamSupport.stream(Spliterators.spliterator(iterator, 1, Spliterator.ORDERED), false);
    }
docs: To iterator stream.
  
  @param <T>      the type parameter
  @param iterator the iterator
  @return the stream