private static @NotNull LookupElementDecorator<LookupElement> withInsertHandler(SuggestedNameInfo callback, LookupElement element) {
    return LookupElementDecorator.withInsertHandler(element, (context, item) -> {
      TailType tailType = LookupItem.getDefaultTailType(context.getCompletionChar());
      if (tailType != null) {
        context.setAddCompletionChar(false);
        tailType.processTail(context.getEditor(), context.getTailOffset());
      }
      callback.nameChosen(item.getLookupString());
    });
  }
private static @NotNull LookupElementDecorator<LookupElement> withInsertHandler(SuggestedNameInfo callback, LookupElement element)