private Maybe<Expression> EnumerableMethod(Type type, Expression instance, string id, Lazy<Expression[]> argumentList)
{
if (instance != null && type != typeof(string))
{
Type enumerableType = FindGenericType(typeof(IEnumerable<>), type);
if (enumerableType != null)
{
Type elementType = enumerableType.GetGenericArguments()[0];
return ParseEnumerableMethods(instance, elementType, id, argumentList);
}
}
return Maybe.Nothing;
}