void (@NotNull LookupElementPresentation presentation) { super.renderElement(presentation); if (myTags.size() == 1) { presentation.appendTailText(" " + JavaBundle.message("java.completion.tag", myTags.size()) + " ", true); int startOffset = getStartOffset(presentation); String text = myTags.iterator().next(); presentation.appendTailText(text, true); highlightLast(presentation, startOffset); } else if (myTags.size() > 1) { presentation.appendTailText(" " + JavaBundle.message("java.completion.tag", myTags.size()) + " ", true); Iterator<String> iterator = myTags.iterator(); String firstTag = iterator.next(); int startOffset = getStartOffset(presentation); presentation.appendTailText(firstTag, true); highlightLast(presentation, startOffset); while (iterator.hasNext()) { presentation.appendTailText(", ", true); String nextTags = iterator.next(); startOffset = getStartOffset(presentation); presentation.appendTailText(nextTags, true); highlightLast(presentation, startOffset); } } }