public static Either3<Range, PrepareRenameResult, PrepareRenameDefaultBehavior> prepareRename(EventPositionContext context) {
        Node node = CSTUtils.getSymbolAtPosition(context.document.getRootNode(), context.position);

        if (node == null) {
            return null;
        }
        
        return Either3.forFirst(node.getRange());
    }
Responsible for LSP textDocument/prepareRename requests.

We declare a rename as valid if there is a symbol at the position.
integration/schema-language-server/language-server/src/main/java/ai/vespa/schemals/lsp/schema/rename/SchemaPrepareRename.java