docs: public static List<MenuItem> getVisibleMenuItemList(@NonNull Toolbar toolbar) {
          List<MenuItem> list = new ArrayList<>();
          for (int i = 0; i < toolbar.getChildCount(); i++) {
              final View v = toolbar.getChildAt(i);
              if (v instanceof ActionMenuView) {
                  int childCount = ((ActionMenuView) v).getChildCount();
                  for (int j = 0; j < childCount; j++) {
                      final View innerView = ((ActionMenuView) v).getChildAt(j);
                      if (innerView instanceof ActionMenuItemView) {
                          list.add(((ActionMenuItemView) innerView).getItemData());
                      }
                  }
              }
          }
          return list;
      }