docs: public final void setOptionsMenuHidden(boolean optionsMenuHidden) {
          boolean invalidate = attached && hasOptionsMenu && this.optionsMenuHidden != optionsMenuHidden;
  
          this.optionsMenuHidden = optionsMenuHidden;
  
          if (invalidate) {
              router.invalidateOptionsMenu();
          }
      }