public void setDataFromPath(@NotNull Path file) throws IOException {
    long size = Files.size(file);
    if (size < FileUtilRt.LARGE_FOR_CONTENT_LOADING) {
      // for small files it's faster to load their whole content into memory, so we can write it to zip sequentially
      myFile.getOutputStream().putNextEntryBytes(this, Files.readAllBytes(file));
    }
    else {
      try (InputStream input = Files.newInputStream(file)) {
        myFile.getOutputStream().putNextEntryContent(this, input);
      }
    }
  }
public void setDataFromPath(@NotNull Path file)