void (final @NotNull String templateId, Project project) { final ShowSettingsUtil util = ShowSettingsUtil.getInstance(); final AllFileTemplatesConfigurable configurable = new AllFileTemplatesConfigurable(project); util.editConfigurable(project, configurable, () -> { configurable.myTabbedPane.setSelectedIndex(ArrayUtil.indexOf(configurable.myTabs, configurable.myCodeTemplatesList)); for (FileTemplate template : configurable.myCodeTemplatesList.getTemplates()) { if (Objects.equals(templateId, template.getName())) { configurable.myCodeTemplatesList.selectTemplate(template); break; } } }); }