public CompletionItem getColonSnippet(final boolean hasAdditionalSpec) {
            String snippetContent = name + (hasAdditionalSpec ? " $1: " : ": ");
            if (!hasSnippets()) {
                snippetContent += "${" + (hasAdditionalSpec ? "2|" : "1|") + getChoiceTemplate() + "|}";
            }
            return CompletionUtils.constructSnippet(name, snippetContent, name + ":");
        }
Turns this keyword body into a snippet of itself, with the keyword: item syntax.
@param hasAdditionalSpec specifies if there should be an identifier after the keyword, i.e. match field_name: ...
integration/schema-language-server/language-server/src/main/java/ai/vespa/schemals/lsp/schema/completion/provider/FixedKeywordBodies.java