fun <T : Any> Iterable<ContractState>.sumFungibleOrNull(): Amount<Issued<T>>?
Sums the asset states in the list, returning null if there are none.