code: public final void setDialog(@NonNull final MaterialDialog dialog) {
          Condition.INSTANCE.ensureNotNull(dialog, "The dialog may not be null");
          this.dialog = dialog;
      }
docs: Sets the dialog, which contains the view pager.
  
  @param dialog
  The dialog, which should be set, as an instance of the type {@link MaterialDialog}.
  The dialog may not be null