protected function findRelatedIssues(RepositoryInterface $repository, $message)
    {
        $issues = [];

        foreach ($this->findShortnamesInMessage($message) as $shortName) {
            $shortNameAndNumber = explode('-', $shortName);
            $issues = array_merge($this->issueRepository->findRelatedIssuesByRepository(
                $repository, $shortNameAndNumber[0], $shortNameAndNumber[1]
            ), $issues);
        }

        return $issues;
    }