protected function renderPanelRow($panel, $ignoredPanels)
    {
        $parsedElements = [];
        $index          = 0;
        $max            = (\count($panel) - 1);
        foreach ($panel as $element) {
            /** @var PanelElementInterface $element */
            // If the current class in the list of ignored panels go to the next one.
            if ($this->isIgnoredPanel($element, $ignoredPanels)) {
                $max--;
                continue;
            }

            $parsedElements[] = $this->renderPanelElement(
                $element,
                $this->calculatePanelElementCssClass($index, $max)
            );
            $index++;
        }

        return $parsedElements;
    }