private static void writeBitSet(Parcel dest, BitSet set) {
		int nextSetBit = -1;

		if (dest == null || set == null) {
			return; // at least dont crash
		}

		dest.writeInt(set.cardinality());

		while ((nextSetBit = set.nextSetBit(nextSetBit + 1)) != -1) {
			dest.writeInt(nextSetBit);
		}
	}
Utility methods to read and write a bitset from and to a Parcel
library/src/main/java/com/tjerkw/slideexpandable/library/AbstractSlideExpandableListAdapter.java