private static bool AssertCompatible(ReflectedProperty reflectedProperty, Type newContextType) { IContextAware aware = reflectedProperty.Value as IContextAware; if (aware != null) { if (!aware.GetContextType().IsAssignableFrom(newContextType)) { Debug.Log($"Not compatible! {aware.GetContextType().Name} & {newContextType.Name}"); return(false); } } return(true); }