List<LookupElement> () { return mySignatures.stream() .sorted(ReflectiveSignature::compareTo) .map(signature -> LookupElementBuilder.create(signature, "") .withIcon(signature.getIcon()) .withPresentableText(myName + signature.getShortArgumentTypes()) .withTypeText(!myIsConstructor ? signature.getShortReturnType() : null)) .collect(Collectors.toList()); }