encapsulatingType

fun TypeResolver.encapsulatingType(exprList: List<SqlExpr>, vararg typeOrder: DialectType): IntermediateType
fun TypeResolver.encapsulatingType(exprList: List<SqlExpr>, nullability: (List<Boolean>) -> Boolean?, vararg typeOrder: DialectType, preferKotlinType: Boolean = false): IntermediateType

Return

the type from the expr list which is the highest order in the typeOrder list