code: public static void isNotEmpty( Iterator<?> argument,
                                     String name ) {
          isNotNull(argument, name);
          if (!argument.hasNext()) {
              throw new IllegalArgumentException(CommonI18n.argumentMayNotBeEmpty.text(name));
          }
      }
docs: Checks that the iterator is not empty, and throws an exception if it is.
  
  @param argument the iterator to check
  @param name The name of the argument
  @throws IllegalArgumentException If iterator is empty (i.e., iterator.hasNext() returns false)