private void doFindTokensByName(List<ClangToken> tokens, ClangTokenGroup group, String name) {

		for (int i = 0; i < group.numChildren(); ++i) {
			ClangNode child = group.Child(i);
			if (child instanceof ClangTokenGroup) {
				doFindTokensByName(tokens, (ClangTokenGroup) child, name);
			}
			else if (child instanceof ClangToken) {
				ClangToken token = (ClangToken) child;
				if (name.equals(token.getText())) {
					tokens.add(token);
				}
			}
		}
	}
Get the line number for the given y position, relative to the scroll panel

<p>
If the y position is below all the lines, the last line is returned.

@param y the y position
@return the line number, or 0 if not applicable
Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/component/DecompilerPanel.java