code: public static void inflate(@NonNull MenuInflater inflater,
                                 @NonNull Context context,
                                 int menuId,
                                 @NonNull Menu menu,
                                 boolean checkSubMenus) {
          inflater.inflate(menuId, menu);
          parseXmlAndSetIconicsDrawables(context, menuId, menu, checkSubMenus);
      }
docs: /*
  Inflates an menu by resource id and uses the styleable tags to get the iconics data of menu
  items
  
  By default, menus don't show icons for sub menus, but this can be enabled via reflection
  So use this function if you want that sub menu icons are checked as well