public static <C>List<C> toList(final BOp op,final Class<C> clas){
  final List<C> list=new LinkedList<C>();
  final Iterator<C> it=visitAll(op,clas);
  while (it.hasNext()) {
    list.add(it.next());
  }
  return list;
}

public static < C > List < C > toList ( final BOp op , final Class < C > clas ) { final List < C > list = new LinkedList < C > ( ) ; final Iterator < C > it = visitAll ( op , clas ) ; while ( it . hasNext ( ) ) { list . add ( it . next ( ) ) ; } return list ; }
return a list containing references to all nodes of the given type ( recursive , including annotations ) . < p > note : this may be used to work around concurrent modification errors since the returned list is structurally independent of the original operator tree .
