Add validation that this modifier is present in ref of the extension method, to prevent issues like this one: dotnet/runtime#90911
Currently, there's no such validation, so it is possible to miss this modifier by accident, if ref is updated manually.