static void checkArgument(boolean condition, String errorMessage) {
        if (!condition) {
            throw new IllegalArgumentException(errorMessage);
        }
    }
Ensures the truth of an expression involving one or more parameters to the calling method.

@param condition to condition to be tested
@param errorMessage the exception message to use if the check fails.
@throws IllegalArgumentException if the condition is {@code false}
common/src/main/java/org/conscrypt/Preconditions.java