private static Stream<?> all(Iterator<Object> i) {
        requireNonNull(i);
        final Iterable<Object> it = () -> i;
        return StreamSupport.stream(it.spliterator(), false);
    }
Creates a <code>Stream</code> over all the elements of the stack using an
<code>Iterator</code>.

@param i     the iterator
@return      a stream of all the models in the stack
common-parent/codegen/src/main/java/com/speedment/common/codegen/internal/DefaultRenderStack.java