protected function findConflictResolutions()
    {
        $contents = '<?php' . PHP_EOL . $this->declaringClass->getBody();
        $this->tokens = token_get_all($contents);
        $this->tokensCount = count($this->tokens);

        while (($token = $this->next()) !== null) {
            if ($token[0] === T_USE) {
                $conflicts = $this->extractConflictsFromUseStatement();
                if ($conflicts !== null) {
                    $this->conflictResolutions = explode(';', implode('', $conflicts));
                    $this->conflictResolutions = array_map('trim', $this->conflictResolutions);
                    $this->conflictResolutions = array_filter($this->conflictResolutions);

                    return;
                }
            }
        }

        throw new InvalidArgumentException('Could not find the trait "' . $this->name . '".');
    }