As we saw in #51219, the fact that SetConstraint eagerly computes the constraint type set makes the API awkward to use for importers. We should investigate if this API restriction can be removed or improved. CC @griesemer