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.
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.