@CheckReturnValue
  @Contract(pure = true)
  default @NotNull ClickCallback<T> filter(final @NotNull Predicate<T> filter, final @Nullable Consumer<? super Audience> otherwise) {
    return audience -> {
      if (filter.test(audience)) {
        this.accept(audience);
      } else if (otherwise != null) {
        otherwise.accept(audience);
      }
    };
  }
Filter audiences that receive this click callback.

@param filter the filter to test audiences with
@param otherwise the action to perform on the audience if the conditions are not met
@return a filtered callback action
@since 4.13.0
api/src/main/java/net/kyori/adventure/text/event/ClickCallback.java