private function getItemBySource(MappingInterface $mapping, $sourceSlug)
    {
        if ($sourceSlug === $mapping->getLeftItem()->getSource()->getSlug()) {
            return $mapping->getLeftItem();
        }

        return $mapping->getRightItem();
    }