Code for pulling generics from constructor and metho params