LookupElementBuilder (@NotNull final PyCustomMember member, @Nullable final String typeText) { LookupElementBuilder lookupElementBuilder = LookupElementBuilder.create(member.getName()) .withIcon(member.getIcon()) .withTypeText(typeText); if (member.isFunction()) { lookupElementBuilder = lookupElementBuilder.withInsertHandler(ParenthesesInsertHandler.NO_PARAMETERS).withLookupString("()"); } return lookupElementBuilder; }