public static boolean isForceUndoFlagSet(@NotNull VirtualFile file) {
    return file.getUserData(UndoConstants.FORCE_RECORD_UNDO) == Boolean.TRUE;
  }
public static boolean isForceUndoFlagSet(@NotNull VirtualFile file)