@Override
	protected void okCallback() {
		if (rememberOptionCheckBox.isSelected()) {
			rememberOption.rememberResult(result);
		}
		close();
	}
callback for when the "OK" button is pressed.
Ghidra/Framework/Docking/src/main/java/docking/widgets/OptionDialog.java