@ApiStatus.ScheduledForRemoval(inVersion = "5.0.0")
  @Contract(pure = true)
  @Deprecated
  default @NotNull Component replaceText(final @NotNull String search, final @Nullable ComponentLike replacement) {
    return this.replaceText(b -> b.matchLiteral(search).replacement(replacement));
  }
Finds and replaces text within any {@link Component}s using a string literal.

@param search a string literal
@param replacement a {@link ComponentLike} to replace each match
@return a modified copy of this component
@since 4.0.0
@deprecated for removal since 4.2.0, use {@link #replaceText(Consumer)} or {@link #replaceText(TextReplacementConfig)} instead.
api/src/main/java/net/kyori/adventure/text/Component.java