public static bool HasForeignKey(this AssociationSourceEndModel model)
 {
     return(model.HasStereotype("Foreign Key"));
 }
        public static ForeignKey GetForeignKey(this AssociationSourceEndModel model)
        {
            var stereotype = model.GetStereotype("Foreign Key");

            return(stereotype != null ? new ForeignKey(stereotype) : null);
        }