protected void showDialog() {
    ApplicationEx app = ApplicationManagerEx.getApplicationEx();
    ThreadingAssertions.assertEventDispatchThread();
    if (!isRunning() || isCanceled()) {
      return;
    }

    if (app.isExitInProgress() && app.getService(InstantShutdown.class).isAllowed()) {
      return;
    }

    initializeOnEdtIfNeeded();
    myDialog.show();
    if (myDialog != null) {
      myDialog.getRepaintRunnable().run();
    }
  }
protected void showDialog()