public static void ValidateModifierSample(string samplePath,
                                                  Action <string> NoSampleFolderFound,
                                                  Action <string> NoSampleFound,
                                                  Action <string> ValidSampleFound,
                                                  Action <string> TooManySampleFound
                                                  )
        {
            if (Directory.Exists(samplePath))
            {
                var filesInSampling = FileController.FilePathsInFolderOnly1Level(samplePath)
                                      .Where(path => !path.EndsWith(AssetBundleGraphSettings.UNITY_METAFILE_EXTENSION))
                                      .ToList();

                switch (filesInSampling.Count)
                {
                case 0: {
                    NoSampleFound("no importSetting file found in ImporterSetting directory:" + samplePath + ", please reload first.");
                    return;
                }

                case 1: {
                    ValidSampleFound(filesInSampling[0]);
                    return;
                }

                default: {
                    TooManySampleFound("too many samples in ImporterSetting directory:" + samplePath);
                    return;
                }
                }
            }

            NoSampleFolderFound("no samples found in ImporterSetting directory:" + samplePath + ", applying default importer settings. If you want to set Importer seting, please Reload and set import setting from the inspector of Importer node.");
        }
        public static void ValidateImportSample(string samplePath,
                                                Action <string> NoSampleFolderFound,
                                                Action <string> NoSampleFound,
                                                Action <string> ValidSampleFound,
                                                Action <string> TooManySampleFound
                                                )
        {
            if (Directory.Exists(samplePath))
            {
                var filesInSampling = FileController.FilePathsInFolderOnly1Level(samplePath)
                                      .Where(path => !path.EndsWith(AssetBundleGraphSettings.UNITY_METAFILE_EXTENSION))
                                      .ToList();

                switch (filesInSampling.Count)
                {
                case 0: {
                    NoSampleFound(samplePath);
                    return;
                }

                case 1: {
                    ValidSampleFound(filesInSampling[0]);
                    return;
                }

                default: {
                    TooManySampleFound(samplePath);
                    return;
                }
                }
            }

            NoSampleFolderFound(samplePath);
        }