Inspired by the answer of How to get the correct MethodInfo for "Where" extension method.
((Func<IEnumerable<string>, string, bool>)Enumerable.Contains).Method.GetGenericMethodDefinition()