public static void SetSettings(Settings<SettingsObject> settings)
 {
     if (Settings == null)
     {
         Settings = settings;
     }
     else
     {
         throw new InvalidOperationException("Settings should only be set once.");
     }
 }
 public static void SetSettings(Settings <SettingsObject> settings)
 {
     if (Settings == null)
     {
         Settings = settings;
     }
     else
     {
         throw new InvalidOperationException("Settings should only be set once.");
     }
 }