public final void close(int exitCode, boolean isOk) {
    logCloseDialogEvent(exitCode);
    ensureEventDispatchThread();
    if (myClosed) return;
    myClosed = true;
    myExitCode = exitCode;
    disposeResizeListener();

    if (isOk) {
      processDoNotAskOnOk(exitCode);
    }
    else {
      processDoNotAskOnCancel();
    }

    Disposer.dispose(myDisposable);
  }
public final void close(int exitCode, boolean isOk)