code: public void collectFromRoot(Collection<ResourcePathNode<D>> nodes) {
  
      if (this.parent != null) {
        this.parent.collectFromRoot(nodes);
      }
      nodes.add(this);
    }
docs: {@link Collection#add(Object) Adds} all {@link ResourcePathNode}s of this path from the {@link #getRoot() root}
  down to {@code this} node.
  
  @param nodes is the {@link Collection} where to {@link Collection#add(Object) add} the nodes.