void (ActionEvent e) { final TemplatesPanel ui = new TemplatesPanel(clazz.getProject()); Configurable composite = new TabbedConfigurable() { @Override @NotNull protected List<Configurable> createConfigurables() { List<Configurable> res = new ArrayList<>(); res.add(new GenerateToStringConfigurable(clazz.getProject())); res.add(ui); return res; } @Override public String getDisplayName() { return JavaBundle.message("generate.tostring.tab.title"); } @Override public String getHelpTopic() { return "editing.altInsert.tostring.settings"; } @Override public void apply() throws ConfigurationException { super.apply(); updateDialog(clazz, chooser); comboBox.removeAllItems(); for (TemplateResource resource : ToStringTemplatesManager.getInstance().getAllTemplates()) { comboBox.addItem(resource); } comboBox.setSelectedItem(ToStringTemplatesManager.getInstance().getDefaultTemplate()); } }; ShowSettingsUtil.getInstance().editConfigurable(MemberChooserHeaderPanel.this, composite, () -> ui.selectItem(ToStringTemplatesManager.getInstance().getDefaultTemplate())); composite.disposeUIResources(); }