public static void copyFileOrDir(@NotNull File from, @NotNull File to, boolean isDir) throws IOException {
    if (isDir) {
      copyDir(from, to);
    }
    else {
      copy(from, to);
    }
  }
public static void copyFileOrDir(@NotNull File from, @NotNull File to, boolean isDir)