private boolean checkStaleOverlays(Program p) {
		if (!hasStaleOverlays(p)) {
			return false;
		}

		String usage = (p == currentProgram) ? "current" : "selected";

		int rc = OptionDialog.showOptionDialogWithCancelAsDefaultButton(null, "Diff Warning",
			"The " + usage +
				" program has recently had an overlay space renamed which may prevent an accurate Diff.\n" +
				"It is recommended that the program be closed and re-opened before performing Diff.",
			"Continue");
		return (rc != OptionDialog.OPTION_ONE);
	}
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