void (@NotNull LookupElementPresentation presentation) { final String relativePath = getRelativePath(); final StringBuilder sb = new StringBuilder(); if (myInfo != null) { sb.append(" (").append(myInfo); } if (relativePath != null && !relativePath.equals(myName)) { if (myInfo != null) { sb.append(", "); } else { sb.append(" ("); } sb.append(relativePath); } if (sb.length() > 0) { sb.append(')'); } presentation.setItemText(myName); if (sb.length() > 0) { presentation.setTailText(sb.toString(), true); } presentation.setIcon(myIcon); }