Add null type annotations.
Fix requireNonNull call.