@Override
	public boolean fieldElementClicked(Object clickedObject, Navigatable sourceNavigatable,
			ProgramLocation location, MouseEvent mouseEvent, ServiceProvider serviceProvider) {
		if (mouseEvent.getClickCount() != 2 || mouseEvent.getButton() != MouseEvent.BUTTON1) {
			return false;
		}
		String[] comments = getComment(location);
		int commentRow = getCommentRow(location);
		int column = getCommentColumn(location);

		if (comments.length == 0) {
			return false; // some comment location may have no comments, like plate comments
		}

		if (commentRow < 0) {
			return false; // Plate field locations can return negative values when clicking above 
							// the border
		}

		String clickedWord =
			StringUtilities.findWord(StringUtilities.convertTabsToSpaces(comments[commentRow]),
				column, GoToService.VALID_GOTO_CHARS);

		return checkWord(clickedWord, serviceProvider, sourceNavigatable);
	}
A handler to process {@link CommentFieldLocation} clicks.
Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/field/CommentFieldMouseHandler.java