int (LookupElementPresentation p, LookupElement item) { updateIconWidth(p.getIcon()); return calculateWidth(p, getRealFontMetrics(item, false, CUSTOM_NAME_FONT), getRealFontMetrics(item, true, CUSTOM_NAME_FONT)) + calcSpacing(myTailComponent, null) + calcSpacing(myTypeLabel, null); }