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
329898
public static Set<ModuleElement>
            modulesIn(Set<? extends Element> elements) {
        return setFilter(elements, MODULE_KIND, ModuleElement.class);
    }
1373213
public static <T> Level0ArrayOperator<Date[],Date> onArrayFor(final Date... elements) {
        return onArrayOf(Types.DATE, VarArgsUtil.asRequiredObjectArray(elements));
    }
42216
public static <E> ArrayList<E> newArrayList(Iterable<? extends E> elements) {
		return (elements instanceof Collection) ? new ArrayList<E>((Collection<? extends E>)elements)
				: newArrayList(elements.iterator());
	}
875964
@SuppressWarnings("unchecked")
    public static List<Element> elements(Element element, QName name) {

        return element.elements(name);
    }
921834
@SafeVarargs
    /* #end */
  public static <KType> KTypeArrayList<KType> from(KType... elements) {
    final KTypeArrayList<KType> list = new KTypeArrayList<KType>(elements.length);
    list.add(elements);
    return list;
  }
232307
public static Set<PackageElement>
            packagesIn(Set<? extends Element> elements) {
        return setFilter(elements, PACKAGE_KIND, PackageElement.class);
    }
763726
public static <T> Level0ArrayOperator<Integer[],Integer> onArrayFor(final Integer... elements) {
        return onArrayOf(Types.INTEGER, VarArgsUtil.asRequiredObjectArray(elements));
    }
529480
public static <A> Set<A> set(A... elements) {
        final Set<A> set = new HashSet<A>(elements.length);
        for (A element : elements) {
            set.add(element);
        }
        return set;
    }
330558
@Pure
	public static Map<ShapeElementType, MapElementGroup> classifiesElements(Collection<? extends MapElement> elements) {
		return classifiesElements(elements.iterator());
	}
1293835
private static Set<String> setFor( String... elements ) {
        Set<String> set = new HashSet<String>(elements.length);
        set.addAll(Arrays.asList(elements));

        return set;
    }
200261
public static <E> SortedSet<E> newSortedSet(E... elements) {
        SortedSet<E> set = new TreeSet<E>();
        Collections.addAll(set, elements);
        return set;
    }
621439
public static <T> Level0ArrayOperator<java.sql.Date[],java.sql.Date> onArrayFor(final java.sql.Date... elements) {
        return onArrayOf(Types.forClass(java.sql.Date.class), VarArgsUtil.asRequiredObjectArray(elements));
    }
626921
public static <A> List<A> list(A... elements) {
        final List<A> list = new ArrayList<A>(elements.length);
        for (A element : elements) {
            list.add(element);
        }
        return list;
    }
622058
public static <T> LinkedList<T> newLinkedList(Iterable<? extends T> elements) {
		return Lists.newLinkedList(elements);
	}
1001805
public static <E> List<E> copyOf(E[] elements) {
    Preconditions.checkNotNull(elements, "elements");
    List<E> result = new ArrayList<>(elements.length);
    Collections.addAll(result, elements);
    return Collections.unmodifiableList(result);
  }
808876
protected <T extends AnnotatedElement> Map<T, PropertyInfo> resolve(T[] elements) {
        return resolve(null, elements, Collections.<Class>emptySet());
    }
260749
public static List<Element> getChildElements(final Element elem, final DitaClass cls) {
        return getChildElements(elem, cls, false);
    }