public static long checkArgumentNonnegative(final long value, final String errorMessage) {
        if (value < 0) {
            throw new IllegalArgumentException(errorMessage);
        }

        return value;
    }
Ensures that that the argument numeric value is non-negative.

@param value        a numeric long value
@param errorMessage the exception message to use if the check fails
@return the validated numeric value
@throws IllegalArgumentException if {@code value} was negative
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/util/Preconditions.java