code: private IntVar getMovingVM() {
          //VMs that are moving
          for (int i = move.nextSetBit(0); i >= 0; i = move.nextSetBit(i + 1)) {
              if (starts[i] != null && !starts[i].isInstantiated() && oldPos[i] != hosts[i].getValue()) {
                  return starts[i];
              }
          }
          return null;
      }
docs: Get the start moment for a VM that moves
  
  @return a start moment, or {@code null} if all the moments  are already instantiated