I think you can just create a new `ArrayList` here. The collection in which you gather the elements needs not be of the same type as the collection into which you out the elements at the end. That spares you the reflection instantiation, which may fail if no public nullary constructor exists.