CodeUnit getCodeUnit(ListingActionContext context) {
		Address address = context.getAddress();
		if (address != null) {
			return context.getProgram().getListing().getCodeUnitContaining(address);
		}
		return null;
	}
Get the instruction at the location provided by the context
@param context the action context
@return code unit containing current location if found (component data unsupported)
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/equate/EquatePlugin.java