public static void requireTrue(boolean expression, String fmt, Object... args) {
        if (!expression) {
            throw new IllegalArgumentException(String.format(fmt, args));
        }
    }
Ensures the truth of an expression involving one or more parameters
to the calling method.

@param expression a boolean expression
@param fmt        the exception message with format string
@param args       arguments referenced by the format specifiers in the format
                  string
@throws IllegalArgumentException if {@code expression} is false
jraft-core/src/main/java/com/alipay/sofa/jraft/util/Requires.java