void (@NotNull String traceFilePath) { Path traceFile = Paths.get(traceFilePath); Path parent = traceFile.getParent(); String zipName = traceFile.getFileName() + ".zip"; System.out.println("Preparing zip."); try { Path zipFile = parent.resolve(zipName); ZipUtil.compressFile(traceFile, zipFile); FileUtil.delete(traceFile); System.out.println("archive " + zipFile + " prepared"); } catch (IOException e) { e.printStackTrace(); } }