Get method definition if and only if it is generic.
Merge pull request #19 from Giorgi/master

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