protected MemberInfo GetComponentParentReferenceProperty(IEnumerable <MemberInfo> persistentProperties, Type propertiesContainerType) { return(ModelInspector.IsComponent(propertiesContainerType) ? persistentProperties.FirstOrDefault(pp => pp.GetPropertyOrFieldType() == propertiesContainerType) : null); }