Wouldnt `'#\$this->Paginator->url#'` also grab `urls()` etc?
Might be better to use `\b` etc: `'#\$this->Paginator->url\b#'`

That might also wrongly modify `$this->Paginator->url->foo()`.

So maybe better

    '#\$this->Paginator->url\(#'`,
    '$this->Paginator->generateUrl(',