if (ReflectionUtils.IsGenericDefinition(underlyingType, typeof(IReadOnlyCollection<>))
                    || ReflectionUtils.IsGenericDefinition(underlyingType, typeof(IReadOnlyList<>)))
                    CreatedType = typeof(ReadOnlyCollection<>).MakeGenericType(CollectionItemType);