fun Iterable<ContractState>.sumCashOrNull(): Amount<Issued<Currency>>?
Sums the cash states in the list, returning null if there are none.