Adds null checks for apply(F), throwing an NPE if parameter is null as evidently
required by the @Nullable contract of apply() and as FindBug's
NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE
has gently reminded.