private function buildContentEntries(array $entries): void
    {
        foreach ($entries as $remoteEntry) {
            if ($remoteEntry instanceof Entry) {
                $contentfulEntry = $this->contentful->refreshContentfulEntry($remoteEntry);
                if ($contentfulEntry !== null) {
                    $this->io->writeln(sprintf('Remote entry %s synced.', $contentfulEntry->getId()));
                }
            } elseif ($remoteEntry instanceof DeletedEntry) {
                $this->contentful->deleteContentfulEntry($remoteEntry);
                $this->io->writeln(sprintf('Remote entry %s deleted.', $remoteEntry->getId()));
            }
        }
    }