LookupElement (PsiMethod psiMethod, PsiClass qualifierClass) { String presentableText = qualifierClass.getName() + "::" + psiMethod.getName(); return LookupElementBuilder .create(psiMethod) .withLookupString(presentableText) .withPresentableText(presentableText) .withInsertHandler((context, item) -> { context.getDocument().insertString(context.getStartOffset(), "::"); JavaCompletionUtil.insertClassReference(qualifierClass, context.getFile(), context.getStartOffset()); }) .withTypeText(myFunctionalInterfaceType.getPresentableText()) .withIcon(AllIcons.Nodes.MethodReference) .withAutoCompletionPolicy(AutoCompletionPolicy.NEVER_AUTOCOMPLETE); }