Add an occurrence of the given element at the given offset.
element
offset
void addOccurrence(Element element, int offset);