private void createAutoUpdateCheckBox() {

		autoUpdateCB = new GCheckBox("Automatically Update Details", false);
		autoUpdateCB.setName(AUTO_UPDATE_CHECK_BOX);
		autoUpdateCB.addActionListener(e -> {
			autoUpdate = autoUpdateCB.isSelected();
			if (autoUpdate) {
				refreshDetails(plugin.getCurrentLocation());
			}
		});

	}
Create the automatically update checkbox for diff details.
Ghidra/Features/ProgramDiff/src/main/java/ghidra/app/plugin/core/diff/DiffDetailsProvider.java