The Guava `Function` interface has an `@Nullable` annotation on the parameter to `apply()`. As a habit, whenever writing a `Function` implementation, I always check that the input is non-null, even if it's unlikely to be the case. Some smart IDEs see the nullable annotation and show warnings if it is absent. That's my convention however, and I can remove this if you'd prefer.