private JPanel createLimitPanel() {
		JPanel panel = new JPanel();

		limitToSelectionCB = new GCheckBox("Limit To Selection");
		limitToSelectionCB.setName("LimitToSelectionDiffCB");
		limitToSelectionCB.setToolTipText("Limits the Diff to the selection.");
		limitToSelectionCB.addActionListener(ev -> {
			limitToSelection = limitToSelectionCB.isSelected();
			updateDiffSetText();
			clearStatusText();
		});

		panel.add(limitToSelectionCB);
		panel.getAccessibleContext().setAccessibleName("Limit");
		return panel;
	}
Create a panel for the checkboxes to indicate the filter settings.
Ghidra/Features/ProgramDiff/src/main/java/ghidra/app/plugin/core/diff/ExecuteDiffDialog.java