public static File backupFile(@NotNull Path file) throws IOException {
    final String fileName = FileUtil.createSequentFileName(file.getParent().toFile(), file.getFileName().toString(), BACKUP_EXTENSION);
    final File backup = file.getParent().resolve(fileName).toFile();
    FileUtil.copy(file.toFile(), backup);
    return backup;
  }
public static File backupFile(@NotNull Path file)