public static function getEntityChoice(SymfonyStyle $helper, $entities, $question = 'Please choose')
    {
        $choice = [];
        foreach ($entities as $entity) {
            $choice[$entity->getId()] = strval($entity);
        }

        if (0 === count($choice)) {
            throw new \RuntimeException('No choices found!');
        }

        $selection = $helper->choice($question, $choice);
        $selectionId = array_search($selection, $choice);

        return CollectionUtility::find($entities, $selectionId);
    }