public static ClangLabelToken getGoToTargetToken(ClangTokenGroup root, ClangLabelToken label) {
		ClangNode parent = label.Parent();
		if (!(parent instanceof ClangStatement)) {
			return null;
		}

		ClangStatement statement = (ClangStatement) parent;
		if (!isGoToStatement(statement)) {
			return null;
		}

		String destinationStart = label.getText() + ':';
		Address address = label.getMinAddress();
		List<ClangToken> tokens = getTokens(root, address);
		for (ClangToken token : tokens) {
			if (isGoToStatement(token)) {
				continue; // ignore any goto statements
			}

			if (!(token instanceof ClangLabelToken)) {
				continue;
			}

			ClangNode tokenParent = token.Parent();
			String parentText = tokenParent.toString();
			if (parentText.startsWith(destinationStart)) {
				return (ClangLabelToken) token;
			}
		}

		return null;
	}
Find closest addressed token to a specified token or null if one is not found.
Only adjacent tokens on the same line are examined.
@param token the query token
@return closest addressed token
Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/component/DecompilerUtils.java