code: public Set<Event> getEvents(Hook k) {
          Set<Event> l = events.get(k);
          return l == null ? Collections.emptySet() : l;
      }
docs: Get the events attached to a specific hook.
  
  @param k the hook
  @return a list of events that may be empty