boolean () { final Sdk jdk = myJdkChooser.getSelectedJdk(); if (jdk == null) { int result = Messages .showOkCancelDialog(JavaUiBundle.message("prompt.confirm.project.no.jdk"), JavaUiBundle.message("title.no.jdk.specified"), Messages.getOkButton(), Messages.getCancelButton(), Messages.getWarningIcon(), null); if (result != Messages.OK) { return false; } } try { mySdksModel.apply(null, true); } catch (ConfigurationException e) { //IDEA-98382 We should allow Next step if user has wrong SDK if (Messages.showDialog(JavaUiBundle.message("dialog.message.0.do.you.want.to.proceed", e.getMessage()), e.getTitle(), new String[]{CommonBundle.getYesButtonText(), CommonBundle.getNoButtonText()}, 1, Messages.getWarningIcon()) != Messages.YES) { return false; } } return true; }