private static int findMonitorExitIndex(InstructionSequence sequence) {
    int index = -1;
    for (int i = 0; i < sequence.length(); i++) {
      if (sequence.getInstr(i).opcode == CodeConstants.opc_monitorexit) {
        index = i;
        break;
      }
    }
    return index;
  }
private static int findMonitorExitIndex(InstructionSequence sequence)