@NotNull
  private static LookupElement toLookupElement(@NotNull String name, @NotNull PsiElement element, boolean withIcon) {
    final LookupElementBuilder builder = LookupElementBuilder.createWithSmartPointer(name, element);
    return withIcon ? builder.withIcon(element.getIcon(0)) : builder;
  }
@NotNull
  private static LookupElement toLookupElement(@NotNull String name, @NotNull PsiElement element, boolean withIcon)