LookupElementBuilder (LookupElementBuilder element) { String tagText = "{@code " + element.getLookupString() + "}"; return element.withPresentableText(tagText).withInsertHandler( (context, item) -> context.getDocument().replaceString(context.getStartOffset(), context.getTailOffset(), tagText)); }