“Inappropriate intimacy” is a new pattern for me (and I Googled it very gingerly ).
To answer your question, we don’t currently have a rule for this. The classes in your example are each calling public APIs and building a heuristic for when it crosses the line into too much would be tricky to get right, IMO. But I don’t implement rules.
What would be valuable metrics to check for? I, too, was eager to search the term. And found quite a large amount of interesting results.
But then i refined my search to look for metrics that evaluate this kind of intimacy … and there it got rather shallow. Actually i did not find any stated metrics, but i did not search very intensely.
So my first gut feeling persists: “how should i - at all - measure this rather nebulously claimed intimacy thing”