Throws if the given value is null, otherwise returns it.
The generic type of the value being tested.
The value which could possibly be null.
The (optional) name of the value, to include in the thrown error message.
The value, once it has been confirmed it is not null.
Throws if the given value is null, otherwise returns it.