@Contract("_ -> this")
  @SuppressWarnings("unchecked")
  default @NotNull B apply(final @NotNull Consumer<? super ComponentBuilder<?, ?>> consumer) {
    consumer.accept(this);
    return (B) this;
  }
Applies an action to this builder.

@param consumer the action
@return this builder
@since 4.0.0
api/src/main/java/net/kyori/adventure/text/ComponentBuilder.java