I would like to write a method that would return a java.util.List of any type without the need to typecast anything:
java.util.List
List
Something like this
publiс List magicalListGetter(Class clazz) { List list = doMagicalVooDooHere(); return list; }