@Contract(pure = true)
  @Override
  default @NotNull Component colorIfAbsent(final @Nullable TextColor color) {
    if (this.color() == null) return this.color(color);
    return this;
  }
Sets the color if there isn't one set already.

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