code: public static <E> E first(Iterator<E> iterator) {
          return new FirstElement<E>().apply(iterator);
      }
docs: Yields the first element of the iterator.
  
  @param <E> the element type parameter
  @param iterator the iterator to be searched
  @throws IllegalArgumentException if no element is present
  @return the found element