private void updateOptionsAndRefresh() {
		suppressRecursiveCallbacks(updateInProgressFlag, () -> {
			List<Address> selectedAddrs = getSelectedAddresses();
			if (!selectedAddrs.isEmpty()) {
				previouslySelectedRowAddrs.set(selectedAddrs);
			}

			updateOptions();
			tableModel.setOptions(currentOptions);
			selectedRowChange();
		});
	}
For test/screen shot use

@return button
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/strings/EncodedStringsDialog.java