code: protected Elements getFirst(Elements elems) {
          @SuppressWarnings("unchecked")
          IterableElements<Elements> iterableElems = elems.as(IterableElements.class);
          return Iterables.getFirst(iterableElems, null);
      }
docs: Gets the first.
  
  @param elems
  the elems
  @return the first