code: public static Function<GHEventsSubscriber, Void> processEvent(final GHSubscriberEvent event) {
          return new NullSafeFunction<GHEventsSubscriber, Void>() {
              @Override
              protected Void applyNullSafe(@Nonnull GHEventsSubscriber subscriber) {
                  try {
                      subscriber.onEvent(event);
                  } catch (Throwable t) {
                      LOGGER.error("Subscriber {} failed to process {} hook, skipping...",
                              subscriber.getClass().getName(), event, t);
                  }
                  return null;
              }
          };
      }
docs: Function which calls {@link #onEvent(GHSubscriberEvent)} for every subscriber on apply
  
  @param event the event
  
  @return function to process {@link GHEventsSubscriber} list. Returns null on apply.
  @since 1.26.0