@Override
    public void setSelected(@NotNull AnActionEvent e, boolean state) {
      if (!isEnabled()) {
        setVisibleOnly(myRoot);
      }
      else if ((e.getModifiers() & getModifier()) != 0) {
        setVisibleOnly(myRoot);
      }
      else {
        setVisible(myRoot, state);
      }
      for (SelectVisibleRootAction action : myAllActions) {
        action.updateIcon();
      }
    }
@Override
    public void setSelected(@NotNull AnActionEvent e, boolean state)