function addGlobalEventProcessor(callback) {
  // eslint-disable-next-line deprecation/deprecation
  getGlobalEventProcessors().push(callback);
}
Process an array of event processors, returning the processed event (or `null` if the event was dropped).