private CodeAction fixDeprecatedArraySyntax(EventCodeActionContext context, Diagnostic diagnostic) {
        Node tokenNode = CSTUtils.getLeafNodeAtPosition(context.document.getRootNode(), context.position);
        if (tokenNode == null) return null;
        if (!tokenNode.getParent().getParent().isASTInstance(dataType.class))return null;

        String typeText = tokenNode.getText();
        CodeAction action = basicQuickFix("Change to array<" + typeText + ">", diagnostic);

        action.setEdit(CodeActionUtils.simpleEdit(context, tokenNode.getParent().getParent().getRange(), "array<" + typeText + ">"));
        action.setIsPreferred(true);
        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