class PopupPresenter extends Presenter<Popup<D, R>> {

  public void dismiss() {
    if (whatToShow != null) {
      whatToShow = null;
      if (!hasView()) return;
      Popup<D, R> popUp = getView();
      if (popUp.isShowing()) popUp.dismiss(WITH_FLOURISH);
    }
  }

  protected  PopupPresenter(String customStateKey);
  protected  PopupPresenter();

}