private void LoadOrCreatePreferences()
        {
            AssetDatabase.Refresh();
            preferences = AssetDatabase.LoadAssetAtPath <VersioningPreferences>(VersioningPreferences.Path);

            if (preferences == null)
            {
                string folder, parentPath;
                Utils.GetFolderAndParentPath(VersioningPreferences.Path, out parentPath, out folder);
                if (!AssetDatabase.IsValidFolder(parentPath + "/" + folder))
                {
                    AssetDatabase.CreateFolder(parentPath, folder);
                }

                preferences = ScriptableObject.CreateInstance <VersioningPreferences>();
                AssetDatabase.CreateAsset(preferences, VersioningPreferences.Path);

                AssetDatabase.SetLabels(preferences, new [] { VersioningPreferences.FileLabel });
            }
        }
 void InitSystem()
 {
     versionSystem = new VersionSystem();
     preferences   = versionSystem.Preferences;
 }