public static <T> boolean contains(@Nullable Collection<T> values, Predicate<T> predicate) {
        if (values == null) {
            return false;
        }
        for (T value : values) {
            if (predicate.test(value)) {
                return true;
            }
        }
        return false;
    }
Note that the method only checks the immutable classes used by Turms.
turms-server-common/src/main/java/im/turms/server/common/infra/collection/CollectionUtil.java