Wraps an object with
Objects.requireNonNull
.