Detect when project is saved

Is there a built-in function to know when the user press CTRL+S or File->Save / File->Save Project?

I found a workaround to do it with C#, but that’s from 1 year ago and seems a little hackish. Maybe now Unity provides a more elegant solution.

AssetModificationProcessor.OnWillSaveAssets
This is called by Unity when it is about to write serialized assets or scene files to disk.