boolean (CreatePatchConfigurationPanel p) { final DialogWrapper dialogWrapper = new MyDialogWrapper(myProject, p); dialogWrapper.setTitle(message("create.patch.dialog.title")); dialogWrapper.setModal(true); dialogWrapper.show(); return dialogWrapper.getExitCode() == DialogWrapper.OK_EXIT_CODE; }