public static void forceUndoIn(@NotNull VirtualFile file, @NotNull Runnable runnable) {
    file.putUserData(UndoConstants.FORCE_RECORD_UNDO, Boolean.TRUE);
    try {
      runnable.run();
    }
    finally {
      file.putUserData(UndoConstants.FORCE_RECORD_UNDO, null);
    }
  }
public static void forceUndoIn(@NotNull VirtualFile file, @NotNull Runnable runnable)