A tense problem about the use of "Could"

Here is a paragraph from the HP books:

Was he imagining things? Could all this have anything to do with the Potters? If it did... if it got out that they were related to a pair of---well, he didn't think he could bear it.

In my opinion, the second sentence should be "Could all this have had anything to do with the Potters?" namely, to use the past participle to refer to the past time.

Could anybody help me out with this problem? Thanks.


Solution 1:

He asks himself, "Am I imagining things? Can all this have something to do with the Potters?" The past tense is enough to report his thoughts.

It could also have been written entirely in the pluperfect but it would have lost its urgency, particularly when you add the next line:

Could all this have had anything to do with the Potters? If it had... if it had got out that they were related to a pair of---

Too many hads! And perhaps it should change tense here:

If it had. . . and if it NOW got out that they were related . . .?

It loses its immediacy and becomes pedestrian.