code: public static ScrollSpy scrollSpy(final HasId target) {
          return new ScrollSpy((Element) Document.get().getBody().cast(), target);
      }
docs: Attaches ScrollSpy to document {@code <body>} and with the specified
  target element that <strong>must</strong> have an ID.
  
  @param target Target element having an ID
  @return ScrollSpy