@Override
    public T get() {
        T obj;
        if (iterator.hasNext()) {
            obj = iterator.next();
        } else {
            obj = create();
            objects.addFirst(obj);
        }

        return obj;
    }
This is a prepared collection of objects. It is aimed to solve the problem of
creating and releasing objects in a loop. After all objects are used, the collection
should be reset.


@param <T>
examples/demo-service/src/main/java/com/clickhouse/demo_service/ObjectsPreparedCollection.java