getHandlerForEvent(event) {
        if (event instanceof events.DismissibleValetudoEvent) {
            return new handlers.DismissibleValetudoEventHandler({
                robot: this.robot,
                event: event
            });
        } else if (event instanceof events.ConsumableDepletedValetudoEvent) {
            return new handlers.ConsumableDepletedValetudoEventHandler({
                robot: this.robot,
                event: event
            });
        } else if (event instanceof events.PendingMapChangeValetudoEvent) {
            return new handlers.PendingMapChangeValetudoEventHandler({
                robot: this.robot,
                event: event
            });
        }

        return undefined; // Explicit to make eslint happy
    }
@param {import("./events/ValetudoEvent")} event
@returns {import("./handlers/ValetudoEventHandler") | undefined}