code: private void handleFlowResults(Queue<Env<AttrContext>> queue, ListBuffer<Element> elems) {
              for (Env<AttrContext> env: queue) {
                  switch (env.tree.getTag()) {
                      case CLASSDEF:
                          JCClassDecl cdef = (JCClassDecl) env.tree;
                          if (cdef.sym != null)
                              elems.append(cdef.sym);
                          break;
                      case MODULEDEF:
                          JCModuleDecl mod = (JCModuleDecl) env.tree;
                          if (mod.sym != null)
                              elems.append(mod.sym);
                          break;
                      case PACKAGEDEF:
                          JCCompilationUnit unit = env.toplevel;
                          if (unit.packge != null)
                              elems.append(unit.packge);
                          break;
                  }
              }
              genList.addAll(queue);
          }
docs: where