void (@NotNull LookupElementPresentation presentation) { boolean qualify = myHelper != null && !myHelper.willBeImported() || myForcedQualifier != null; PsiVariable variable = getObject(); String name = variable.getName(); if (qualify && variable instanceof PsiField && ((PsiField)variable).getContainingClass() != null) { name = (myForcedQualifier != null ? myForcedQualifier : ((PsiField)variable).getContainingClass().getName() + ".") + name; } presentation.setItemText(name); presentation.setIcon(DefaultLookupItemRenderer.getRawIcon(this)); presentation.setStrikeout(JavaElementLookupRenderer.isToStrikeout(this)); if (myTailText != null) { if (myTailText.startsWith(EQ)) { presentation.appendTailTextItalic(" (" + myTailText + ")", true); } else { presentation.setTailText(myTailText, true); } } if (myHelper != null) { myHelper.renderElement(presentation, qualify, true, getSubstitutor()); } if (myColor != null) { presentation.setTypeText("", JBUIScale.scaleIcon(new ColorIcon(12, myColor))); } else { presentation.setTypeText(getType().getPresentableText()); } }