void (int exitCode, boolean isOk) { logCloseDialogEvent(exitCode); ensureEventDispatchThread(); if (myClosed) return; myClosed = true; myExitCode = exitCode; disposeResizeListener(); if (isOk) { processDoNotAskOnOk(exitCode); } else { processDoNotAskOnCancel(); } Disposer.dispose(myDisposable); }