presto-spi/src/main/java/io/prestosql/spi/block/AbstractSingleRowBlock.java/AbstractSingleRowBlock/checkFieldIndex
class AbstractSingleRowBlock:    private void checkFieldIndex(int position)
    {
        if (position < 0 || position >= getPositionCount()) {
            throw new IllegalArgumentException("position is not valid: " + position);
        }
    }