docs: private void maybeMarkCurrentAddressAsUsed(LegacyAddress address) {
          checkArgument(address.getOutputScriptType() == ScriptType.P2SH);
          for (Map.Entry<KeyChain.KeyPurpose, Address> entry : currentAddresses.entrySet()) {
              if (entry.getValue() != null && entry.getValue().equals(address)) {
                  log.info("Marking P2SH address as used: {}", address);
                  currentAddresses.put(entry.getKey(), freshAddress(entry.getKey()));
                  return;
              }
          }
      }