private void addActionInfo(Object component) {
    AnAction action = null;
    if (component instanceof ActionButton) {
      action = ((ActionButton)component).getAction();
    }
    else if (component instanceof JComponent) {
      if (component instanceof ActionMenuItem) {
        action = ((ActionMenuItem)component).getAnAction();
      }
      else if (component instanceof ActionMenu) {
        action = ((ActionMenu)component).getAnAction();
      }
      else {
        action = getAction(
          ComponentUtil.findParentByCondition((Component)component, c -> getAction(c) != null)
        );
      }
    }

    if (action != null) {
      myProperties.addAll(UiInspectorUtil.collectAnActionInfo(action));
    }
  }
private void addActionInfo(Object component)