[clang-tidy] `isOnlyUsedAsConst`: Handle static method calls. (#84005)

... using method syntax:

```
struct S {
  static void f()
};

void DoIt(S& s) {
  s.f();  // Does not mutate `s` through the `this` parameter.
}
```

GitOrigin-RevId: 308a2360725948fd6c77d005110c169ab1a8322c
2 files changed