Invalid restriction for type '%1!s!'. The element in the restricted type may not be nillable if the corresponding element ...