Generics.getTypeParameter work-around