private function getCellWidth($cell)
{
$lineWidths = [0];
foreach (explode(PHP_EOL, $cell) as $line) {
$lineWidths[] = Helper::strlenWithoutDecoration($this->outputCopy->getFormatter(), $line);
}
$cellWidth = max($lineWidths);
if ($cell instanceof TableCell && $cell->getColspan() > 1) {
$cellWidth /= $cell->getColspan();
}
return $cellWidth;
}