class HostIsLocal extends GenericMatcher {

    @Override
    public Collection<MailAddress> match(Mail mail) throws MessagingException {
        return recipientsByDomains(mail)
            .flatMap(this::hasLocalDomain)
            .collect(Guavate.toImmutableList());
    }

}