docs: public static Map<String, ?> hidePasswords(Map<String, ?> map) {
          Map<String, Object> result = new LinkedHashMap<String, Object>();
          result.putAll(map);
          for (String key : map.keySet()) {
              Object value = map.get(key);
              if (value instanceof String) {
                  if (isPassword(key)) {
                      result.put(key, "#");
                  }
              } else if (value instanceof Map) {
                  @SuppressWarnings("unchecked")
                  Map<String, ?> bare = (Map<String, ?>) value;
                  result.put(key, hidePasswords(bare));
              }
          }
          return result;
      }