Also make Objects.requireNonNull() throw NullPointerException to match the original API behavior.
and use this in a few places.