public bool IsGenericGeneratorReturnType(IType returnType)
{
return returnType.ConstructedInfo != null &&
(returnType.ConstructedInfo.GenericDefinition == IEnumerableGenericType ||
returnType.ConstructedInfo.GenericDefinition == IEnumeratorGenericType);
}