List () { ArrayList result = new ArrayList(); TreeNode root = (TreeNode) getRoot(); for (int i = 0; i < root.getChildCount(); i++) { addElementsToCollection(root.getChildAt(i), result); } return result; }