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