BasicBlock toBasicBlock() {
    InsnList result = new InsnList(instructions.size());
    for (int i = 0; i < instructions.size(); i++) {
      result.set(i, instructions.get(i));
    }
    result.setImmutable();

    int primarySuccessorIndex = -1;
    IntList successors = new IntList();
    for (Label catchLabel : catchLabels) {
      successors.add(catchLabel.id);
    }
    if (primarySuccessor != null) {
      primarySuccessorIndex = primarySuccessor.id;
      successors.add(primarySuccessorIndex);
    }
    if (alternateSuccessor != null) {
      successors.add(alternateSuccessor.id);
    }
    successors.setImmutable();

    return new BasicBlock(id, result, successors, primarySuccessorIndex);
  }
contains the instruction to jump to if the if is true
android/android_framework/dex-maker/src/main/java/com/android/dx/Label.java