@Override
  @SuppressWarnings("unchecked")
  public @NotNull B append(final @NotNull Component component) {
    if (component == Component.empty()) return (B) this;
    this.prepareChildren();
    this.children.add(requireNonNull(component, "component"));
    return (B) this;
  }
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