presto-main/src/main/java/io/prestosql/type/InternalTypeManager.java/InternalTypeManager/getCommonSuperType
class InternalTypeManager:    @Override
    public Optional<Type> getCommonSuperType(Type firstType, Type secondType)
    {
        return typeCoercion.getCommonSuperType(firstType, secondType);
    }