public static <T> Predicate<T> not(T t) {
        return obj -> !t.equals(obj);
    }
A collection of predicate utilities used mostly in command classes
common/src/main/java/me/lucko/luckperms/common/util/Predicates.java