private static LookupElementBuilder setupLookupBuilder(@NotNull PsiElement element,
                                                 @NotNull LookupElementBuilder builder,
                                                 @Nullable String tailText,
                                                 @Nullable String typeText) {
    builder = builder.withIcon(element.getIcon(Iconable.ICON_FLAG_VISIBILITY | Iconable.ICON_FLAG_READ_STATUS))
      .withInsertHandler(GroovyInsertHandler.INSTANCE);
    if (element instanceof PsiModifierListOwner && ((PsiModifierListOwner)element).hasAnnotation(CommonClassNames.JAVA_LANG_DEPRECATED)) {
      builder = builder.strikeout();
    }
    builder = tailText != null ? builder.withTailText(tailText) : builder;
    builder = typeText != null ? builder.withTypeText(typeText) : builder;
    return builder;
  }
private static LookupElementBuilder setupLookupBuilder(@NotNull PsiElement element,
                                                 @NotNull LookupElementBuilder builder,
                                                 @Nullable String tailText,
                                                 @Nullable String typeText)