package gw.api.ui uses java.util.Collection enhancement WC_CostWrapperCollectionEnhancement : Collection { function addCosts(costs : Collection){ this.addAll( costs.map( \ c -> new WC_CostWrapper(c)).toCollection() ) } }