@Override
    public void update(@NotNull AnActionEvent e) {
      Presentation p = e.getPresentation();
      T scheme = getCurrentScheme();
      boolean isAvailable = scheme != null && mySchemesPanel.getModel().canDuplicateScheme(scheme);
      p.setVisible(isAvailable);
      p.setEnabled(isAvailable && mySchemesPanel.isEnabled());
    }
@Override
    public void update(@NotNull AnActionEvent e)