presto-parser/src/main/java/io/prestosql/sql/parser/AstBuilder.java/AstBuilder/getTextIfPresent
class AstBuilder:    private static Optional<String> getTextIfPresent(Token token)
    {
        return Optional.ofNullable(token)
                .map(Token::getText);
    }