private OpenVersionedFileDialog<Program> getOpenVersionedFileDialog(
			List<Program> openPrograms) {

		// This will always be null except during testing.
		if (openVersionedFileDialog != null) {
			return openVersionedFileDialog;
		}

		OpenVersionedFileDialog<Program> dialog =
			new OpenVersionedFileDialog<>(tool, "Select Other Program", Program.class,
				openPrograms);
		dialog.setTreeSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
		dialog.setHelpLocation(new HelpLocation("Diff", "Open_Close_Program_View"));
		return dialog;
	}
Check program's address factory for stale overlay condition.
@param p program to check
@return true if user chose to cancel operation due to stale overlays
Ghidra/Features/ProgramDiff/src/main/java/ghidra/app/plugin/core/diff/ProgramDiffPlugin.java