public static ArrayList<CompletionItem> getCompletionItems(EventCompletionContext context, PrintStream errorLogger) {

        if (StringUtils.isInsideComment(context.document.getCurrentContent(), context.position)) {
            return new ArrayList<CompletionItem>();
        }

        if (context.document.getDocumentType() == DocumentType.SCHEMA || context.document.getDocumentType() == DocumentType.PROFILE) {
            return SchemaCompletion.getCompletionItems(context, errorLogger);
        }

        return YQLCompletion.getCompletionItems(context, errorLogger);
    }
Responsible for LSP textDocument/completion requests.
integration/schema-language-server/language-server/src/main/java/ai/vespa/schemals/lsp/common/completion/CommonCompletion.java