code: private void addLastChildElements() {
          for (Node node : nodes) {
              if (DOMHelper.getNextSiblingElement(node) == null) {
                  result.add(node);
              }
          }
      }
docs: Add {@code :last-child} elements.
  
  @see <a href="http://www.w3.org/TR/css3-selectors/#last-child-pseudo"><code>:last-child</code> pseudo-class</a>