LookupElementBuilder (@NotNull String name, @Nullable PsiType type) { LookupElementBuilder res = LookupElementBuilder.create(name).withIcon(JetgroovyIcons.Groovy.Property); if (type != null) { res = res.withTypeText(type.getPresentableText()); } return res; }