protected void click(FieldPanel fp, Point p, int clickCount, boolean wait) {

		int x = p.x;
		int y = p.y;
		MouseEvent ev = new MouseEvent(fp, 0, System.currentTimeMillis(), 0, x, y, clickCount,
			false, MouseEvent.BUTTON1);

		runSwing(() -> {

			MouseListener[] listeners = fp.getMouseListeners();
			for (MouseListener listener : listeners) {
				listener.mousePressed(ev);
			}

			for (MouseListener listener : listeners) {
				listener.mouseReleased(ev);
			}

			for (MouseListener listener : listeners) {
				listener.mouseClicked(ev);
			}
		}, wait);
	}
Triggers a browser click at the current cursor location.  Thus, this method should be
called only after the browser location is set to the desired field.

@param codeBrowser the CodeBrowserPlugin
@param clickCount the click count
Ghidra/Features/Base/src/main/java/ghidra/test/AbstractGhidraHeadedIntegrationTest.java