private void cancelRequest() {
    if (myCancelButton.button.isActive()) {
      isCanceled = true;
      getCommandPanelParent().removeCommandByButton(myCodeFragment);
    }
  }
private void cancelRequest()