static BitSet bitSetFromLabelList(BasicBlockList blocks, IntList labelList) {
    BitSet result = new BitSet(blocks.size());

    for (int i = 0, sz = labelList.size(); i < sz; i++) {
      result.set(blocks.indexOfLabel(labelList.get(i)));
    }

    return result;
  }
Builds a BitSet of block indices from a basic block list and a list of labels taken from Rop
form.

@param blocks Rop blocks
@param labelList list of rop block labels
@return BitSet of block indices
android/android_framework/dex-maker/src/main/java/com/android/dx/ssa/SsaMethod.java