/**
  * Check whether another piece touches this piece at the start or end.
  * @param $piece InlineEditorPiece
  * @return bool
  */
 public final function touches(InlineEditorPiece $piece)
 {
     return $piece->getStart() == $this->getEnd() || $piece->getEnd() == $this->getStart();
 }