protected function isIgnoredPanel(PanelElementInterface $element, $ignoredPanels)
    {
        if (empty($ignoredPanels)) {
            return false;
        }

        foreach ((array) $ignoredPanels as $class) {
            if ($element instanceof $class) {
                return true;
            }
        }

        return false;
    }