docs: public static PasswordPolicyDto fromPasswordPolicy(PasswordPolicy policy) {
      PasswordPolicyDto policyDto = new PasswordPolicyDto();
      for (PasswordPolicyRule rule : policy.getRules()) {
        policyDto.rules.add(new PasswordPolicyRuleDto(rule));
      }
      return policyDto;
    }