class ModalStack {

    public void showModal(ViewController viewController, ViewController root, CommandListener listener) {
        ViewController toRemove = isEmpty() ? root : peek();
        modals.add(viewController);
        presenter.showModal(viewController, toRemove, listener);
    }

    public  ModalStack(Activity activity);
    @RestrictTo(RestrictTo.Scope.TESTS)  ModalStack(ModalPresenter presenter);

}