presto-spi/src/main/java/io/prestosql/spi/block/ArrayBlockBuilder.java/ArrayBlockBuilder/closeEntry
class ArrayBlockBuilder:    @Override
    public BlockBuilder closeEntry()
    {
        if (!currentEntryOpened) {
            throw new IllegalStateException("Expected entry to be opened but was closed");
        }

        entryAdded(false);
        currentEntryOpened = false;
        return this;
    }