@Override
  default @NotNull Component decorationIfAbsent(final @NotNull TextDecoration decoration, final TextDecoration.@NotNull State state) {
    requireNonNull(state, "state");
    // Not delegating this method prevents object creation if decoration is NOT absent
    final TextDecoration.@NotNull State oldState = this.decoration(decoration);
    if (oldState == TextDecoration.State.NOT_SET) {
      return this.style(this.style().decoration(decoration, state));
    }
    return this;
  }
Sets the state of a decoration on this component to {@code state} if the current state of
the decoration is {@link TextDecoration.State#NOT_SET}.

@param decoration the decoration
@param state the state
@return a component
@since 4.12.0
api/src/main/java/net/kyori/adventure/text/Component.java