withNullable
Returns a copy of this TypeRef with the specified nullable flag. Shared across introspection front ends (reflection, KSP, APT, kotlinx.serialization) so conventions layered on top of native nullability (e.g. @Nullable-style annotations, type-name patterns) all go through the same code path.