public static @NonNull
    <T extends CharSequence> T checkStringNotEmpty(final T string) {
        if (TextUtils.isEmpty(string)) {
            throw new IllegalArgumentException();
        }
        return string;
    }
Ensures that an string reference passed as a parameter to the calling
method is not empty.

@param string an string reference
@return the string reference that was validated
@throws IllegalArgumentException if {@code string} is empty
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/util/Preconditions.java