presto-parser/src/main/java/io/prestosql/sql/parser/AstBuilder.java/AstBuilder/check
class AstBuilder:    private static void check(boolean condition, String message, ParserRuleContext context)
    {
        if (!condition) {
            throw parseError(message, context);
        }
    }