public Builder addMenuItem(@NonNull String label,@NonNull PendingIntent pendingIntent){
  if (mMenuItems == null)   mMenuItems=new ArrayList<>();
  Bundle bundle=new Bundle();
  bundle.putString(KEY_MENU_ITEM_TITLE,label);
  bundle.putParcelable(KEY_PENDING_INTENT,pendingIntent);
  mMenuItems.add(bundle);
  return this;
}

public Builder addMenuItem ( @ NonNull String label , @ NonNull PendingIntent pendingIntent ) { if ( mMenuItems == null ) mMenuItems = new ArrayList < > ( ) ; Bundle bundle = new Bundle ( ) ; bundle . putString ( KEY_MENU_ITEM_TITLE , label ) ; bundle . putParcelable ( KEY_PENDING_INTENT , pendingIntent ) ; mMenuItems . add ( bundle ) ; return this ; }
adds a menu item .
