Get method definition if and only if the method is generic.

Fixes issue #18