Returns the ReturnValue after validating that null is valid for the expected type.
null
[EditorBrowsable(EditorBrowsableState.Never)] public static object? GetReturnValue(this IMethodReturn return, Type expectedType)