private void doMouseClicked(MouseEvent e) {

		trace("'clicked'");

		int previousButton = lastMouseButton;
		int currentButton = e.getButton();
		lastMouseButton = currentButton;

		if (e.isConsumed()) {
			return;
		}

		if (consume(e) || didConsume) {
			trace("\tevent consumed on or before 'clicked'");
			return;
		}

		if (popup(e) || didPopup) {
			trace("\t popup triggered on or before 'clicked'");
			return;
		}

		if (e.getClickCount() % 2 == 0) { // this allows double-click repeatedly without pause 
			trace("\tdouble-click");
			if (bothClicksFromLeftButton(previousButton, currentButton)) {
				trace("\tdouble-click from left");
				doubleClickTriggered(e);
			}
		}
	}
Called when a popup event is discovered.

@param e the event that triggered the popup
Ghidra/Framework/Docking/src/main/java/docking/event/mouse/GMouseListenerAdapter.java