@Override
	public ActionContext getActionContext(ComponentProvider provider, MouseEvent event) {

		if (event == null) {
			ListingComparisonActionContext context =
				new ListingComparisonActionContext(provider, this);
			return context;
		}

		ListingPanel leftPanel = displays.get(LEFT).getListingPanel();
		ListingPanel rightPanel = displays.get(RIGHT).getListingPanel();

		Object leftMarginContext = getContextForMarginPanels(leftPanel, event);
		if (leftMarginContext != null) {
			return new DefaultActionContext(provider).setContextObject(leftMarginContext);
		}
		Object rightMarginContext = getContextForMarginPanels(rightPanel, event);
		if (rightMarginContext != null) {
			return new DefaultActionContext(provider).setContextObject(rightMarginContext);
		}

		Object source = event.getSource();
		if (source instanceof FieldHeaderComp) {
			FieldHeaderLocation fieldHeaderLocation =
				leftPanel.getFieldHeader().getFieldHeaderLocation(event.getPoint());
			return new DefaultActionContext(provider).setContextObject(fieldHeaderLocation);
		}

		return new ListingComparisonActionContext(provider, this);
	}
Sets the cursor for the side to the given location
@param side The side to goto
@param program the side's program
@param location the location
Ghidra/Features/Base/src/main/java/ghidra/features/base/codecompare/listing/ListingCodeComparisonPanel.java