ScalarResolver for Core Schema with the merge implemented. See Support of Merge Keys.
Resolve (detect) the tag of the scalar node of the given type.