how to detect assets change in editor mode

I use EditorUtility.CollectDependencies get all Dependencies of a asset,I want to dectect these Dependencies whichever any is change.These Dependencies some are textrue,when the textrue format change,I also want to know the texture format whether is change

you can read it in the documentation
MonoBehaviour.OnValidate()