code: public static <K, V> Map<K, V> collectEntries(Iterator<?> self) {
          return collectEntries(self, Closure.IDENTITY);
      }
docs: A variant of collectEntries for Iterators using the identity closure as the transform.
  
  @param self an Iterator
  @return a Map of the transformed entries
  @see #collectEntries(Iterable)
  @since 1.8.7