@Override
      public void update(@NotNull AnActionEvent e) {
        final TemplateGroup templateGroup = getSingleSelectedGroup();
        boolean enabled = templateGroup != null;
        e.getPresentation().setEnabledAndVisible(enabled);
      }
@Override
      public void update(@NotNull AnActionEvent e)