Adding generic resolution to methods and classes.