docs: public void setSupportedEvents(Collection<Class<? extends ApplicationEvent>> supportedEvents) {
          this.supportedEventsCache.clear();
          if (supportedEvents == null) {
              this.supportedEvents = Collections.emptySet();
          } else {
              this.supportedEvents =
                      new LinkedHashSet<Class<? extends ApplicationEvent>>(supportedEvents);
          }
      }