I just learned about this fine looking syntax
Collections.emptyList()
to get an empty List with elements which a
List
You can't, unfortunately. All generics and type parameters are erased in runtime. So in runtime the type of your T is simply Object
T
Object