public static <T> T require(boolean condition, T value, String description) {
        if (condition) return value;
        throw new IllegalArgumentException(description + ", but got: '" + value + "'");
    }
Returns the argument if the condition is true, otherwise throws.
vespajlib/src/main/java/ai/vespa/validation/Validation.java