public final Collection<MailAddress> match(Mail mail) throws MessagingException {
  Collection<MailAddress> matching=new ArrayList<MailAddress>();
  for (  MailAddress recipient : mail.getRecipients()) {
    if (matchRecipient(recipient)) {
      matching.add(recipient);
    }
  }
  return ImmutableList.copyOf(matching);
}

public final Collection < MailAddress > match ( Mail mail ) throws MessagingException { Collection < MailAddress > matching = new ArrayList < MailAddress > ( ) ; for ( MailAddress recipient : mail . getRecipients ( ) ) { if ( matchRecipient ( recipient ) ) { matching . add ( recipient ) ; } } return ImmutableList . copyOf ( matching ) ; }
matches each recipient one by one through matchrecipient ( mailaddress recipient ) method . handles splitting the recipients collection as appropriate .
