void (@NotNull LookupElementPresentation presentation) { presentation.setIcon(myMethod.getIcon(Iconable.ICON_FLAG_VISIBILITY)); presentation.setItemText(myMethod.getName()); presentation.setTailText(PsiFormatUtil.formatMethod(myMethod, PsiSubstitutor.EMPTY, PsiFormatUtil.SHOW_PARAMETERS, PsiFormatUtil.SHOW_NAME | PsiFormatUtil.SHOW_TYPE)); final PsiType returnType = myMethod.getReturnType(); if (returnType != null) { presentation.setTypeText(returnType.getCanonicalText()); } }