presto-parser/src/main/java/io/prestosql/sql/parser/AstBuilder.java/AstBuilder/visit
class AstBuilder:    private <T> List<T> visit(List<? extends ParserRuleContext> contexts, Class<T> clazz)
    {
        return contexts.stream()
                .map(this::visit)
                .map(clazz::cast)
                .collect(toList());
    }