public function hasAbove(Text $text, $pattern, $location = null)
    {
        $searchStrategy = $this->searchEngine->resolve($pattern);
        $foundLineNumber = $searchStrategy->findAbove($text, $pattern, $location);

        return (false !== $foundLineNumber);
    }