you could use `this.findParent(Modal.class)` instead.