private static TKey GetKeyIfValid(TEnum item)
 {
     item.EnsureValid();
     return(item.GetKey());
 }