Return the LSP range of every class/interface/trait/enum declaration in
the file (recursing into braced-namespace bodies). Used by linked-editing
to drop highlights that fall inside an other class than the cursor’s.
Like enclosing_class_at but returns the fully-qualified name
("Ns\\ClassName") when the class lives inside a namespace.
Used by the __construct call-site path so that construct_references
can apply namespace-level filtering and avoid matching a same-short-named
class in a different namespace.
Return the LSP range of the class/interface/trait/enum declaration
whose body contains position, or None if the cursor is outside any.
Used by linked-editing to scope same-name member rewrites to the
enclosing class instead of every class in the file.