Methods flatten and unique added to CollectionUtils