internal void ApplyAndImport()
 {
     this.Apply();
     this.m_MightHaveModified = false;
     AssetImporterInspector.ImportAssets(this.GetAssetPaths());
     this.ResetValues();
 }
        //		internal override void OnHeaderIconGUI(Rect iconRect)
        //		{
        //			this.assetEditor.OnHeaderIconGUI(iconRect);
        //		}

        //		internal override SerializedObject GetSerializedObjectInternal()
        //		{
        //			if (this.m_SerializedObject == null)
        //			{
        //				this.m_SerializedObject = SerializedObject.LoadFromCache(base.GetInstanceID());
        //			}
        //			if (this.m_SerializedObject == null)
        //			{
        //				this.m_SerializedObject = new SerializedObject(base.targets);
        //			}
        //			return this.m_SerializedObject;
        //		}

        public virtual void OnDisable()
        {
            AssetImporter assetImporter = this.target as AssetImporter;

            if (Unsupported.IsDestroyScriptableObject(this) && this.m_MightHaveModified && assetImporter != null && !InternalEditorUtility.ignoreInspectorChanges && this.HasModified() && !this.AssetWasUpdated())
            {
                string message = "Unapplied import settings for '" + assetImporter.assetPath + "'";
                if (base.targets.Length > 1)
                {
                    message = "Unapplied import settings for '" + base.targets.Length + "' files";
                }
                if (EditorUtility.DisplayDialog("Unapplied import settings", message, "Apply", "Revert"))
                {
                    this.Apply();
                    this.m_MightHaveModified = false;
                    AssetImporterInspector.ImportAssets(this.GetAssetPaths());
                }
            }

            /*
             * if (this.serializedObject != null && this.serializedObject.hasModifiedProperties)
             * {
             *      this.serializedObject.Cache(base.GetInstanceID());
             *      this.serializedObject = null;
             * }
             */
        }