JComponent () { if (myJdkPanel == null) { final var ui = new ProjectJdkConfigurableUi(); myJdkPanel = ui.panel(myProject, myJdksModel); myCbProjectJdk = ui.getJdkComboBox(); myCbProjectJdk.showNoneSdkItem(); myCbProjectJdk.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { if (myFreeze) return; if (myCbProjectJdk != null) { myJdksModel.setProjectSdk(myCbProjectJdk.getSelectedJdk()); } clearCaches(); } }); final JButton editButton = ui.getEditButton(); myCbProjectJdk.setEditButton(editButton, myProject, myJdksModel::getProjectSdk); } return myJdkPanel; }