void (@Nullable Icon icon, @NotNull final XValuePresentation valuePresenter, boolean hasChildren) { node.setPresentation(icon, new XValuePresentation() { @NotNull @Override public String getSeparator() { return ": "; } @Nullable @Override public String getType() { return null; } @Override public void renderValue(@NotNull XValueTextRenderer renderer) { String additionalInfo = getAdditionalInfo(); renderer.renderValue(String.format("%s reference %s", myKind.toString().replace('_', ' '), additionalInfo == null ? "" : additionalInfo)); } }, hasChildren); }