> public void caseAListList(AListList node) > { > // we are taking the full control now > > final List lists = new ArrayList(50000); > > PList n = node.getList(); > while(n instanceof AListList){ > lists.add(n); > n = node.getList(); this should be of course n = ((AListList)n).getList(); Sorry for that typo.