presto-spi/src/main/java/io/prestosql/spi/connector/InMemoryRecordSet.java/InMemoryRecordSet/checkState
class InMemoryRecordSet:    private static void checkState(boolean test, String message)
    {
        if (!test) {
            throw new IllegalStateException(message);
        }
    }