code: public static ScrollSpy scrollSpy(final UIObject spyOn, final HasId target) {
          return new ScrollSpy(spyOn.getElement(), target);
      }
docs: Attaches ScrollSpy to specified object with specified target element.
  
  @param spyOn  Spy on this object
  @param target Target element having an ID
  @return ScrollSpy