private boolean isBitSet(int n) {
        int intIndex = n >> 5;
        int maskIndex = n & 0x1f;
        return ((bits[intIndex] & setMask[maskIndex]) != 0);
    }
Tests if the nth bit is on.
Ghidra/Framework/Generic/src/main/java/ghidra/util/datastruct/BitTree.java