public static Predicate<Integer> notInRange(int start, int end) {
        Range<Integer> range = Range.closed(start, end);
        return value -> !range.contains(value);
    }
A collection of predicate utilities used mostly in command classes
common/src/main/java/me/lucko/luckperms/common/util/Predicates.java