private AddressSetView getAddressSet(ProgramLocationActionContext context) {
		if (context.hasSelection()) {
			return context.getSelection();
		}
		if (context.getAddress() != null) {
			Address address = context.getAddress();
			return new AddressSet(address, address);
		}
		return new AddressSet();
	}
Shows the registers available in a program along with any values that are set.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/register/RegisterPlugin.java