public static void require(boolean requirement) {
        if (!requirement)
            throw new IllegalArgumentException("requirement failed");
    }
Checks requirement. Throw {@link IllegalArgumentException} if {@code requirement} failed.
@param requirement Requirement to check.
clients/src/main/java/org/apache/kafka/common/utils/Utils.java