@Override
  @Contract("_, _ -> this")
  @SuppressWarnings("unchecked")
  default @NotNull T decorations(final @NotNull Set<TextDecoration> decorations, final boolean flag) {
    final TextDecoration.State state = TextDecoration.State.byBoolean(flag);
    decorations.forEach(decoration -> this.decoration(decoration, state));
    return (T) this;
  }
Sets the state of a set of decorations to {@code flag}.

@param decorations the decorations
@param flag {@code true} if this mutable object should have the decorations, {@code false} if
    this mutable object should not have the decorations
@return a mutable object ({@code T})
@since 4.10.0
api/src/main/java/net/kyori/adventure/text/format/MutableStyleSetter.java