private static boolean areCollectionLooselyEqual(Collection<?> values1, Object[] values2) {
        if (values1.size() != values2.length) {
            return false;
        }
        int i = 0;
        for (Object value : values1) {
            if (!areTwoObjectsLooselyEqual(values2[i++], value)) {
                return false;
            }
        }
        return true;
    }
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