private boolean validateViewWithSameNameIsAlreadyOpen() {
    for (final Diff diff : workspace.getDiffList()) {
      if (diff.getMatchesDatabase().equals(getMatchesDatabaseTargetFile())) {
        if (this.diff != diff) {
          return diff.getViewManager().getFlowGraphViewsData().size() == 0;
        }
      }
    }

    return true;
  }
Save dialog for function diff views.
java/ui/src/main/java/com/google/security/zynamics/bindiff/gui/dialogs/SaveFunctionDiffViewDialog.java