public static void setForceUndoFlag(@NotNull VirtualFile file, boolean flag) {
    file.putUserData(UndoConstants.FORCE_RECORD_UNDO, flag ? Boolean.TRUE : null);
  }
public static void setForceUndoFlag(@NotNull VirtualFile file, boolean flag)