public static ForeignKey GetForeignKey(this AssociationSourceEndModel model) { var stereotype = model.GetStereotype("Foreign Key"); return(stereotype != null ? new ForeignKey(stereotype) : null); }