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

        CodeAction action = basicQuickFix("Remove field declaration '" + offendingNode.getText() + "'", diagnostic);
        Range fieldRange = offendingNode.getParent().getRange();

        action.setEdit(CodeActionUtils.simpleEdit(context, fieldRange, ""));

        return action;
    }
Provides quick fix for importing a field that is not an attribute.
@param context
@param diagnostic
@return A CodeAction that will set indexing to attribute for the original field.
integration/schema-language-server/language-server/src/main/java/ai/vespa/schemals/lsp/schema/codeaction/provider/QuickFixProvider.java