code: public static List<PackageElement>
              packagesIn(Iterable<? extends Element> elements) {
          return listFilter(elements, PACKAGE_KIND, PackageElement.class);
      }
docs: Returns a list of packages in {@code elements}.
  @return a list of packages in {@code elements}
  @param elements the elements to filter