public List<NestedListContainer> getNestedLists(){ List<NestedListContainer> result = new ArrayList<NestedListContainer>(); for( Section s: sections ) result.addAll( s.getNestedLists() ); return result; }
for( NestedList nl: s.getNestedLists() ) handleContent( nl, hpx, sb );