@ScopedComponentOverrideNotRequired
  default @NotNull Component compact() {
    return ComponentCompaction.compact(this, null);
  }
Create a new component with any redundant style elements or children removed.

@return the optimized component
@since 4.9.0
api/src/main/java/net/kyori/adventure/text/Component.java