Instead of checking intersections of inline elements yourself before
adding an inline element, the new class `InlineElementCollector`
prevents intersections internally.
Additionally the inline elements are sorted by the new class, so it's no
longer necessary to do this after adding the inline elements.