private CodeAction fixFeaturesInheritsNonParent(EventCodeActionContext context, Diagnostic diagnostic) {
        Node offendingNode = CSTUtils.getSymbolAtPosition(context.document.getRootNode(), context.position);
        if (offendingNode == null || offendingNode.getSymbol().getScope() == null) return null;

        Symbol rankProfileSymbol = offendingNode.getSymbol().getScope();
        CodeAction action = basicQuickFix("Inherit rank-profile " + offendingNode.getText() + " from " + rankProfileSymbol.getShortIdentifier(), diagnostic);
        action.setEdit(CodeActionUtils.createInheritsEdit(context, rankProfileSymbol.getNode(), inheritsRankProfile.class, offendingNode.getText()));
        return action;
    }
Quick fix for using attribute some_name_other_than_field_name in a field. Will create a new field outside 
the document with the specified attribute, using the original field as input and type.
@param context
@param diagnostic
@param code
@return CodeAction supplying the edits.
integration/schema-language-server/language-server/src/main/java/ai/vespa/schemals/lsp/schema/codeaction/provider/QuickFixProvider.java