static @NotNull @Nls String displayableText(@NotNull Collection<@Nls String> values, int maxLength) {
    String text;
    if (values.size() == 1) {
      text = Objects.requireNonNull(ContainerUtil.getFirstItem(values));
    }
    else {
      text = StringUtil.join(values, "|");
    }
    return StringUtil.shortenTextWithEllipsis(text, maxLength, 0, true);
  }
static @NotNull @Nls String displayableText(@NotNull Collection<@Nls String> values, int maxLength)