private static boolean isUndoable(@NotNull VFileEvent e, @NotNull VirtualFile file) {
    return !e.isFromRefresh() || UndoUtil.isForceUndoFlagSet(file);
  }
private static boolean isUndoable(@NotNull VFileEvent e, @NotNull VirtualFile file)