private ProgramLocationActionContext getProgramActionContext(ActionContext actionContext) {
		if (actionContext.getContextObject() instanceof ListingActionContext) {
			return (ListingActionContext) actionContext.getContextObject();
		}
		return new ProgramLocationActionContext(null, currentProgram, currentLocation,
			currentSelection, null);
	}
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