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

      p.setEnabled(isEnabled);
      if (mySchemesPanel.hideDeleteActionIfUnavailable()) {
        p.setVisible(isAvailable);
      }
    }
@Override
    public void update(@NotNull AnActionEvent e)