public static void checkArgument(boolean expression,
                                     final String messageTemplate,
                                     final Object... messageArgs) {
        if (!expression) {
            throw new IllegalArgumentException(String.format(messageTemplate, messageArgs));
        }
    }
Ensures that an expression checking an argument is true.

@param expression      the expression to check
@param messageTemplate a printf-style message template to use if the check fails; will
                       be converted to a string using {@link String#format(String, Object...)}
@param messageArgs     arguments for {@code messageTemplate}
@throws IllegalArgumentException if {@code expression} is false
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/util/Preconditions.java