code: public DependencyTreeNode getNode(int position) {
          if (position < 0 || position >= nodes.size())
              throw new IndexOutOfBoundsException("Invalid node: " + position);
          return nodes.get(position);
      }
docs: {@inheritDoc}