private Style.@NotNull Builder styleBuilder() {
    if (this.styleBuilder == null) {
      if (this.style != null) {
        this.styleBuilder = this.style.toBuilder();
        this.style = null;
      } else {
        this.styleBuilder = Style.style();
      }
    }
    return this.styleBuilder;
  }
An abstract implementation of a component builder.

@param <C> the component type
@param <B> the builder type
api/src/main/java/net/kyori/adventure/text/AbstractComponentBuilder.java