docs: public static <E> ImmutableIterator<E> makeImmutable(final Iterator<E> iterator) {
          return new ImmutableIterator<E>() {
              @Override
              public boolean hasNext() {
                  return iterator.hasNext();
              }
  
              @Override
              public E next() {
                  return iterator.next();
              }
          };
      }