private void showPopupForMouseEvent(MouseEvent event) {
		if (!showPopups) {
			return;
		}

		if (event == null) {
			return;
		}

		Component c = event.getComponent();
		if (!c.isShowing()) {
			// This method is called from a timer.  It is possible that the graph has been 
			// closed by the time this method is called.
			return;
		}

		ToolTipInfo<?> toolTipInfo = popupSource.getToolTipInfo(event);
		JComponent toolTipComponent = toolTipInfo.getToolTipComponent();
		boolean isCustomJavaTooltip = !(toolTipComponent instanceof JToolTip);
		if (lastShownPopupTarget == nextPopupTarget && isCustomJavaTooltip) {
			// 
			// Kinda Hacky:
			// We don't show repeated popups for the same item (the user has to move away
			// and then come back to re-show the popup).  However, one caveat to this is that
			// we do want to allow the user to see popups for the toolbar actions always.  So,
			// only return here if we have already shown a popup for the item *and* we are 
			// using a custom tooltip (which is used to show a vertex tooltip or an edge 
			// tooltip)
			return;
		}

		currentToolTipInfo = toolTipInfo;
		showTooltip(currentToolTipInfo);
	}
Sets the enablement of this class's popup
@param visible true to have popups enabled
Ghidra/Framework/Graph/src/main/java/ghidra/graph/viewer/popup/PopupRegulator.java