Implement the Visitor pattern for Events.