public static ModuleModel GetModule(this IElement element)
        {
            var found = element.GetParentPath().Reverse().FirstOrDefault(x => x.SpecializationTypeId == ModuleModel.SpecializationTypeId);

            if (found != null)
            {
                var module = new ModuleModel(found);
                return(module);
            }
            return(null);
        }
 public bool Equals(ModuleModel other)
 {
     return(Equals(_element, other?._element));
 }