code: public static <T> Stream<T> iteratorToStream(final Iterator<T> iterator, final Boolean parallel) {
          return stream(spliteratorUnknownSize(iterator, IMMUTABLE), parallel);
      }
docs: Convert an Iterator to a Stream
  
  @param <T> the type of the Stream
  @param iterator the iterator
  @param parallel whether to parallelize the stream
  @return the stream