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