public static String getBinDiffFilename(
      String primaryBinExportPath, String secondaryBinExportPath) {
    // Using getTruncatedFilename() fixes b/189736868.
    return getTruncatedFilename(
        FileUtils.ensureTrailingSlash(new File(primaryBinExportPath).getParent()),
        FileUtils.getFileBasename(new File(primaryBinExportPath)),
        "_vs_",
        FileUtils.getFileBasename(new File(secondaryBinExportPath)),
        "." + Constants.BINDIFF_MATCHES_DB_EXTENSION);
  }
Creates a fully specified filename no longer than 250 characters.

<p>It should behave exactly the same as the engine's main_portable.cc version. Note: path must
include a trailing slash, extension needs to start with a dot.
java/ui/src/main/java/com/google/security/zynamics/bindiff/processes/DiffProcess.java