docs: public void delete(TimelineEvent event, TimelineUpdater timelineUpdater) {
          int index = getIndex(event);
          if (index >= 0) {
              events.remove(event);
  
              if (timelineUpdater != null) {
                  // update UI
                  timelineUpdater.delete(index);
              }
          }
      }