void (@NotNull AnActionEvent e) { String newName = Messages .showInputDialog(myTree, CodeInsightBundle.message("label.enter.the.new.group.name"), CodeInsightBundle.message("dialog.title.create.new.group"), null, "", new TemplateGroupInputValidator(null)); if (newName != null) { TemplateGroup newGroup = new TemplateGroup(newName); setSelectedNode(insertNewGroup(newGroup)); } }