private static bool ContainsRelatedClass(IRelationshipDef relationship, ClassDefCol classDefCol) { return classDefCol.Contains(relationship.RelatedObjectAssemblyName, relationship.RelatedObjectClassName); }