public void setEnabled(Buttons button, boolean enabled) {
    AnAction b = myButtons.get(button);
    if (b instanceof AnActionButton anActionButton) {
      anActionButton.setEnabled(enabled);
    }
  }
public void setEnabled(Buttons button, boolean enabled)