Get method definition if and only if it is generic.