Rename CollectionUtils#flattenToList to flattenCollections and change it to unpack collections (and arrays), not iterables.