public static void copyFileOrDir(@NotNull File from, @NotNull File to) throws IOException {
    copyFileOrDir(from, to, from.isDirectory());
  }
public static void copyFileOrDir(@NotNull File from, @NotNull File to)