class DiscardAction extends FileIntoAction implements MailAction {

    public static void removeRecipient(Mail mail, ActionContext context) {
        mail.setRecipients(mail.getRecipients()
            .stream()
            .filter(Predicate.not(Predicate.isEqual(context.getRecipient())))
            .collect(Guavate.toImmutableList()));
    }

}