public final void setDirectoryDiffLastPrimaryDir(final String directoryDiffLastPrimaryDir) {
    Config.getInstance()
        .getPreferencesBuilder()
        .getHistoryBuilder()
        .setDirectoryDiffPrimaryDir(directoryDiffLastPrimaryDir);
  }
Sets and gets the main settings via java
java/ui/src/main/java/com/google/security/zynamics/bindiff/config/GeneralSettingsConfigItem.java