core-android/src/main/java/com/uber/sdk/android/core/utils/Preconditions.java
@NonNull
    public static <T> T checkNotNull(T value, @NonNull String errorMessage) {
        if (value == null) {
            throw new NullPointerException(errorMessage);
        }
        return value;
    }
@NonNull
    public static <T> T checkNotNull(T value, @NonNull String errorMessage) {
        if (value == null) {
            throw new NullPointerException(errorMessage);
        }
        return value;
    }
Ensures the value is not null.

@param value value to be validated.
@param errorMessage error message thrown if value is null.
@param <T> type of value.
@return value passed in if not null.