@Contract(pure = true)
  default @NotNull Component style(final @NotNull Consumer<Style.Builder> consumer) {
    return this.style(this.style().edit(consumer));
  }
Sets the style of this component.

@param consumer the style consumer
@return a component
@since 4.0.0
api/src/main/java/net/kyori/adventure/text/Component.java