private static String getToAddress(List<ZEmailAddress> emailAddresses, Set<String> toAddresses) {
private static String getToAddress(List<ZEmailAddress> emailAddresses, List<ZEmailAddress> toAddressList, Set<String> toAddresses) {
    private static String getToAddress(List<ZEmailAddress> emailAddresses, Set<String> toAddresses) {        for (ZEmailAddress address : emailAddresses) {            if (ZEmailAddress.EMAIL_TYPE_REPLY_TO.equals(address.getType())) {                toAddresses.add(address.getAddress());                return address.getFullAddress();            }        }        StringBuilder sb = new StringBuilder();        for (ZEmailAddress address : emailAddresses) {            if (ZEmailAddress.EMAIL_TYPE_FROM.equals(address.getType())) {                if (sb.length() > 0) sb.append(", ");                sb.append(address.getFullAddress());                toAddresses.add(address.getAddress());            }        }        return sb.toString();    }