void () { Project project = myWizardContext.getProject(); Sdk jdk = myJdkComboBox.getSelectedJdk(); if (project == null) { myWizardContext.setProjectJdk(jdk); } else { myModuleBuilder.setModuleJdk(jdk); } }