Mark getEventsData and hasEventListener methods as static