presto-main/src/main/java/io/prestosql/sql/planner/TypeAnalyzer.java/TypeAnalyzer/getType
class TypeAnalyzer:    public Type getType(Session session, TypeProvider inputTypes, Expression expression)
    {
        return getTypes(session, inputTypes, expression).get(NodeRef.of(expression));
    }