File copyBinExport(File binexport, File destinationDirectory, String targetName) {
    try {
      var targetBinExport = Path.of(destinationDirectory.getPath(), targetName).toFile();
      if (!targetBinExport.exists()) {
        ByteStreams.copy(new FileInputStream(binexport), new FileOutputStream(targetBinExport));
      }

      return targetBinExport;
    } catch (IOException e) {
      var message = "Couldn't copy primary BinExport binaries into the new diff directory";
      logger.atSevere().withCause(e).log("%s", message);
      CMessageBox.showError(parentWindow, message + ": " + e.getMessage());

      deleteDestinationDirectory(destinationDirectory);
    }
    return null;
  }
Class NewDiffImplementation implements the UI flow for adding new .BinDiff results to the
workspace.
java/ui/src/main/java/com/google/security/zynamics/bindiff/gui/tabpanels/projecttabpanel/implementations/NewDiffImplementation.java