code: private static void collateVisible(final WComponent component, final List<WComponent> list) {
  		if (component.isVisible()) {
  
  			if (component instanceof Container) {
  
  				final int size = ((Container) component).getChildCount();
  
  				for (int i = 0; i < size; i++) {
  					collateVisible(((Container) component).getChildAt(i), list);
  				}
  			}
  
  			list.add(component);
  		}
  	}
docs: Collates all the visible components in this branch of the WComponent tree. WComponents are added to the
  <code>list</code> in depth-first order, as this list is traversed in order during the request handling phase.
  
  @param component the current branch to collate visible items in.
  @param list the list to add the visible components to.