public static StringValidation GetStringValidation(this DTOFieldModel model) { var stereotype = model.GetStereotype("String Validation"); return(stereotype != null ? new StringValidation(stereotype) : null); }