protected function createLinkToEditFile($test, $fileName, $line, $occurrence)
    {
        if (!$this->fileExistsOnTest($fileName, $test)) {
            return $line[$occurrence];
        }

        $fileName = base64_encode($fileName);

        $tag = sprintf(
            '<a href="javascript:jQuery.get(\'%s\');" class="file">%s</a>',
            route(
                'tests-watcher.file.edit',
                [
                    'filename' => $fileName,
                    'suite_id' => $test->suite->id,
                    'line'     => $line[2],
                ]
            ),
            $line[$occurrence]
        );

        return $tag;
    }