static L bitSetToByteList(BitSet bs) { if (bs == null) null; L l = emptyList(bitCount(bs)); for (int i = bs.nextSetBit(0); i >= 0; i = bs.nextSetBit(i+1)) l.add((byte) i); ret l; }