private function buildWhitelistArguments(
        $targetBranch,
        string $blacklistToken,
        string $filter,
        bool $processIsolation,
        string $glue = ','
    ) : array {
        $gitChangeSet = $this->adaptableFileFinder->findFiles($filter, $blacklistToken, '', $targetBranch);
        $changedFiles = $gitChangeSet->getFiles();

        $whitelistArguments = empty($changedFiles) || $processIsolation
            ? $changedFiles
            : [implode($glue, $changedFiles)];

        $this->output->writeln(
            'Checking diff to ' . $gitChangeSet->getCommitHash(),
            OutputInterface::OUTPUT_NORMAL
        );

        $this->output->writeln(
            'Files to handle:' . "\n" . implode("\n", $changedFiles) . "\n",
            OutputInterface::VERBOSITY_VERBOSE
        );

        return $whitelistArguments;
    }