public static <T1, R> R get(final T1 value,
                                final Function<T1, R> getter) {
        if (value == null) {
            return null;
        } else {
            return Objects.requireNonNull(getter).apply(value);
        }
    }
Apply getter to value if value is non-null.

@return The result of applying getter to value if value is non-null, else null.
stroom-util-shared/src/main/java/stroom/util/shared/NullSafe.java