/**
  * Obtain a parent theme -> children themes map from the filesystem
  *
  * @return array
  */
 private function getParentChildThemeMap()
 {
     $map = [];
     $this->themeCollection->resetConstraints();
     $this->themeCollection->clear();
     /** @var \Magento\Theme\Model\Theme\Data $theme */
     foreach ($this->themeCollection as $theme) {
         if ($theme->getParentTheme()) {
             $map[$theme->getParentTheme()->getFullPath()][] = $theme->getFullPath();
         }
     }
     return $map;
 }