MyLookupElement(String methodName, @NotNull PsiType expectedType) { myMethodName = methodName; myExpectedType = expectedType; myLookupString = "collect(Collectors." + myMethodName + "())"; myTypeText = myExpectedType.getPresentableText(); }