public static List<Tree> getChildren(Tree tree) {
		final int count = tree.getChildCount();
		List<Tree> children = Arrays.asList(new Tree[count]);
		for (int i = 0; i < count; i++) {
			children.set(i, tree.getChild(i));
		}
		return children;
	}
Get the children of a parse tree node

@param tree the node
@return the list of children
Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/SleighUtils.java