private static @NotNull @NlsSafe String toDisplayName(@NotNull @NonNls String tagName) {
    String result = tagName.replaceAll("-", " ").replaceAll("\\.", "|");

    String[] words = NameUtil.nameToWords(result);
    for (int i = 0; i < words.length; i++) {
      @NonNls String word = words[i];
      String replacement = TAG_DISPLAY_NAME_REPLACEMENTS.get(StringUtil.toLowerCase(word));
      if (replacement != null) {
        words[i] = replacement;
      }
    }

    result = StringUtil.join(words, " ");
    result = StringUtil.capitalizeWords(result, true);

    return result;
  }
private static @NotNull @NlsSafe String toDisplayName(@NotNull @NonNls String tagName)