Rather than accepting the listener and notifications as separate arguments, why not simplify this to just the one listener argument and then have it call `notifications` on it here to get the list of notifications?  I thought that was the point in making it a method on the formatter...