How Mark Prefab Dirty?

  1. I open prebab in prefab mode.
  2. Then I change some properties of component via script
  3. Unity Editor doesn’t understabd that prefab was changed.

I tried EditorUtility.SetDirty for component and game object. But it doesn’t work
In previos versions I used EditorSceneManager.MarkSceneDirty(SceneManager.GetActiveScene()); But now we have “Prefab Mode” for prefab edit

var prefabStage = UnityEditor.Experimental.SceneManagement.PrefabStageUtility.GetCurrentPrefabStage();
if (prefabStage != null) {