public static bool HasTrait <T>(this ITraits traits) where T : Trait
 {
     return(traits.GetTrait <T>() != null);
 }
 public static bool Access <T>(this ITraits traits, out T trait) where T : Trait
 {
     return((trait = traits.GetTrait <T>()) != null);
 }