Move to Java 8
Nullable helper

A helper for:
 x == null ? null : x.something()

For example:

Util.nullable(x, Object::toString);