fun <P> Iterable<ContractState>.sumObligationsOrZero(product: P): Amount<P>
Sums the obligation states in the list, returning zero of the given product if there are none.