@Override
	public ActionContext getActionContext(MouseEvent event) {
		if (currentProgram == null) {
			return null;
		}

		if (event != null) {
			// this should be a ProgramNode or a tab
			Object clickedObject = getActivePopupObject(event);
			return new ProgramTreeActionContext(this, currentProgram, viewPanel, clickedObject);
		}

		// this should be a ProgramNode
		Object focusedObject = getFocusedContext();
		return new ProgramTreeActionContext(this, currentProgram, viewPanel, focusedObject);
	}
Get the object under the mouse location for the popup

@param event the mouse event that triggered the popup
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/programtree/ViewManagerComponentProvider.java