code: public static Set<ModuleElement>
              modulesIn(Set<? extends Element> elements) {
          return setFilter(elements, MODULE_KIND, ModuleElement.class);
      }
docs: Returns a set of modules in {@code elements}.
  @return a set of modules in {@code elements}
  @param elements the elements to filter
  @since 9
  @spec JPMS