public static void checkState(final boolean expression, String message) {
        if (!expression) {
            throw new IllegalStateException(message);
        }
    }
Ensures the truth of an expression involving the state of the calling
instance, but not involving any parameters to the calling method.

@param expression a boolean expression
@param message    exception message
@throws IllegalStateException if {@code expression} is false
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/util/Preconditions.java