@Contract(pure = true)
  @ScopedComponentOverrideNotRequired
  default @NotNull Component replaceText(final @NotNull Consumer<TextReplacementConfig.Builder> configurer) {
    requireNonNull(configurer, "configurer");
    return this.replaceText(AbstractBuilder.configureAndBuild(TextReplacementConfig.builder(), configurer));
  }
Finds and replaces any text with this or child {@link Component}s using the configured options.

@param configurer the configurer
@return a modified copy of this component
@since 4.2.0
api/src/main/java/net/kyori/adventure/text/Component.java