code: NodeIterator<T> getNodeIterator(Filter<T> filter) {
          return new NodeIterator<T>(root, filter, true);
      }
docs: Get an internal iterator for nodes that allows filtering based on
  packages or values.
  
  @param filter
  @return