public void addEvent(Event event) {
    List<Event> events = myEvents;
    if (events == null) {
      events = new ArrayList<>();
      myEvents = events;
    }
    events.add(event);
  }
public void addEvent(Event event)