presto-spi/src/main/java/io/prestosql/spi/block/ArrayBlockBuilder.java/ArrayBlockBuilder/build
class ArrayBlockBuilder:    @Override
    public ArrayBlock build()
    {
        if (currentEntryOpened) {
            throw new IllegalStateException("Current entry must be closed before the block can be built");
        }
        return createArrayBlockInternal(0, positionCount, hasNullValue ? valueIsNull : null, offsets, values.build());
    }