@Nullable
  public Object sanitize(String key, @Nullable Object value) {
    for (Pattern pattern : sanitizeKeysPatterns) {
      if (pattern.matcher(key).matches()) {
        return SANITIZED_VALUE;
      }
    }
    return value;
  }
@Test
  void doNothingIfEnabledPropertySetToFalse() {
    final var sanitizer = new KafkaConfigSanitizer(false, List.of());
    assertThat(sanitizer.sanitize("password", "secret")).isEqualTo("secret");
    assertThat(sanitizer.sanitize("sasl.jaas.config", "secret")).isEqualTo("secret");
    assertThat(sanitizer.sanitize("database.password", "secret")).isEqualTo("secret");
  }