default boolean contains(final @NotNull Component that) {
    return this.contains(that, EQUALS_IDENTITY);
  }
Checks if this component contains a component.

<p>This method uses <b>identity</b> comparison when checking for contains. Use {@link #contains(Component, BiPredicate)} with {@link #EQUALS} if you
wish to use full equality comparison.</p>

@param that the other component
@return {@code true} if this component contains the provided
    component, {@code false} otherwise
@since 4.0.0
api/src/main/java/net/kyori/adventure/text/Component.java