@RequiresEdt
  private void updateCommitWorkflowHandler() {
    myInitialized = true;

    boolean isNonModal = CommitModeManager.getInstance(myProject).getCurrentCommitMode() instanceof CommitMode.NonModalCommitMode;
    if (isNonModal) {
      if (myCommitWorkflowHandler == null) {
        Activity activity = StartUpMeasurer.startActivity("ChangesViewWorkflowManager initialization");

        // ChangesViewPanel can be reused between workflow instances -> should clean up after ourselves
        ChangesViewPanel changesPanel = ((ChangesViewManager)ChangesViewManager.getInstance(myProject)).initChangesPanel();
        ChangesViewCommitWorkflow workflow = new ChangesViewCommitWorkflow(myProject);
        ChangesViewCommitPanel commitPanel = new ChangesViewCommitPanel(myProject, changesPanel);
        myCommitWorkflowHandler = new ChangesViewCommitWorkflowHandler(workflow, commitPanel);

        myProject.getMessageBus().syncPublisher(TOPIC).commitWorkflowChanged();

        activity.end();
      }
      else {
        myCommitWorkflowHandler.resetActivation();
      }
    }
    else {
      if (myCommitWorkflowHandler != null) {
        Disposer.dispose(myCommitWorkflowHandler);
        myCommitWorkflowHandler = null;

        myProject.getMessageBus().syncPublisher(TOPIC).commitWorkflowChanged();
      }
    }
  }
@RequiresEdt
  private void updateCommitWorkflowHandler()