public static <T> boolean process(@NotNull Iterator<? extends T> iterator, @NotNull Processor<? super T> processor) {
    while (iterator.hasNext()) {
      if (!processor.process(iterator.next())) {
        return false;
      }
    }
    return true;
  }
public static <T> boolean process(@NotNull Iterator<? extends T> iterator, @NotNull Processor<? super T> processor)