code: public MenuItemTransitionBuilder invalidateOptionOnStopTransition(@NonNull Activity activity, boolean invalidate) {
          mActivity = activity;
          mInvalidateOptionOnStopAnimation = invalidate;
          return self();
      }
docs: See {@link MenuItemTransition#setInvalidateOptionOnStopTransition(Activity, boolean)}}.
  
  @param activity Activity that should have its invalidateOptionsMenu() method called, or null
  if invalidate parameter is false
  @param invalidate
  @return