public static BitSet newBitSet(byte[] bytes) {
        BitSet set = new BitSet(bytes.length);
        for (byte b : bytes) {
            set.set(b);
        }
        return set;
    }
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