@Override
      public void update(@NotNull AnActionEvent e) {
        e.getPresentation().setEnabled(currentTab != myCodeTemplatesList
                                       && currentTab != otherTemplatesList
                                       && getSelectedTemplate() != null);
      }
@Override
      public void update(@NotNull AnActionEvent e)