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