protected final void forEachListener(final @NotNull Consumer<L> consumer) {
    for (final L listener : this.listeners) {
      consumer.accept(listener);
    }
  }
Process an action for each listener.

@param consumer the consumer
@since 4.0.0
api/src/main/java/net/kyori/adventure/util/Listenable.java