Replies the shape types that are corresponding to the given elements.

@param elements the elements to classify.
@return the types and the associated elements
767643
@Pure
	public static Map<ShapeElementType, MapElementGroup> classifiesElements(Iterator<? extends MapElement> elements) {
		final Map<ShapeElementType, MapElementGroup> classification = new TreeMap<>();
		classifiesElements(classification, elements);
		return classification;
	}
223141
public static <T> ArrayList<T> newArrayList(Iterable<T> elements) {
		return Lists.newArrayList(elements);
	}
17392
public static <E extends Comparable<?>> TreeSet<E> newTreeSet(Iterable<? extends E> elements) {
		TreeSet<E> set = newTreeSet();
		for (E element : elements) {
			set.add(element);
		}
		return set;
	}
1246347
public static List<VariableElement>
            fieldsIn(Iterable<? extends Element> elements) {
        return listFilter(elements, FIELD_KINDS, VariableElement.class);
    }
376557
static <T> List<T> list(T... elements) {
    return new ArrayList<>(Arrays.asList(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;
    }
227959
def element_type(self):
        
        result = conf.lib.clang_getElementType(self)
        if result.kind == TypeKind.INVALID:
            raise Exception('Element type not available on this type.')

        return result
402231
private boolean allTypesExist(Collection<? extends Element> elements) {
    for (Element element : elements) {
      if (element.asType().getKind() == TypeKind.ERROR) {
        return false;
      }
    }
    return true;
  }
994325
public void setElements(List<ObjectProperty> elements) {
        if (elements == null) {
            this.elements = null;
        } else {
            if (this.elements != null)
                this.elements.clear();
            for (ObjectProperty o : elements)
                addElement(o);
        }
    }
793166
@Requires({
    "elements != null",
    "!elements.contains(null)",
    "clazz != null",
    "kinds != null"
  })
  @SuppressWarnings("unchecked")
  public static <T extends ElementModel> List<? extends T> filter(
      List<? extends ElementModel> elements, Class<T> clazz,
      ElementKind... kinds) {
    ArrayList<T> result = new ArrayList<T>();
    List<ElementKind> list = Arrays.asList(kinds);
    for (ElementModel element : elements) {
      if (list.contains(element.getKind())
          && clazz.isAssignableFrom(element.getClass())) {
        result.add((T) element);
      }
    }
    return Collections.unmodifiableList(result);
  }
564376
@SafeVarargs
  public static <E> Set<E> of(E... elements) {
    Set<E> result = new HashSet<>();
    Collections.addAll(result, elements);
    return Collections.unmodifiableSet(result);
  }
352249
public List<FormElement> forms() {
        ArrayList<FormElement> forms = new ArrayList<>();
        for (Element el: this)
            if (el instanceof FormElement)
                forms.add((FormElement) el);
        return forms;
    }
136422
public void setIfexistsall(String elements) {

        if (elements != null) {
            m_elementlist = elements;
            m_checkall = true;
            m_checknone = false;
        }
    }
1004457
public static Set<TypeElement>
            typesIn(Set<? extends Element> elements) {
        return setFilter(elements, TYPE_KINDS, TypeElement.class);
    }
149520
public static <T> TypeChecker<List<? extends T>> tList(Class<? extends T> elementType) {
        return tList(tSimple(elementType));
    }
1125031
@SafeVarargs
	public static <E> ArrayList<E> newArrayList(E... elements) {
		ArrayList<E> list = new ArrayList<E>();
		Collections.addAll(list, elements);
		return list;
	}
666129
protected final List<String> parseElementList(final List<Element> elements) {
        final List<String> values = new ArrayList<String>();
        for (final Element element : elements) {
            values.add(element.getText());
        }
        return values;
    }