LookupElement (@NotNull ReflectiveSignature signature, @NotNull PsiElement context) { final String expressionText = getMethodTypeExpressionText(signature); final PsiElementFactory factory = JavaPsiFacade.getElementFactory(context.getProject()); final PsiExpression expression = factory.createExpressionFromText(expressionText, context); final String shortTypes = signature.getText(true, type -> PsiNameHelper.getShortClassName(type) + ".class"); final String presentableText = PsiNameHelper.getShortClassName(JAVA_LANG_INVOKE_METHOD_TYPE) + "." + METHOD_TYPE + shortTypes; final String lookupText = METHOD_TYPE + signature.getText(true, PsiNameHelper::getShortClassName); return lookupExpression(expression, IconManager.getInstance().getPlatformIcon(com.intellij.ui.PlatformIcons.Method), presentableText, lookupText); }