public static boolean isUndoDisabledFor(@NotNull VirtualFile file) {
    return Boolean.TRUE.equals(file.getUserData(UndoConstants.DONT_RECORD_UNDO));
  }
public static boolean isUndoDisabledFor(@NotNull VirtualFile file)