@ Nonnull public static < T > T ensureNonNull ( @ Nullable final T value , @ Nonnull final T defaultValue ) { return value == null ? Assertions . assertNotNull ( defaultValue ) : value ; }
Get value and ensure that the value is not null