class SenderIsNull extends GenericMatcher {

    @Override
    public Collection<MailAddress> match(Mail mail) {
        if (mail.hasSender()) {
            return null;
        } else {
            return mail.getRecipients();
        }
    }

}