@Nls
  private static String getTitle2Text(@Nullable @Nls String fullText, @NotNull JLabel label) {
    int labelWidth = label.getWidth();
    if (fullText == null || fullText.length() == 0) return " ";
    while (label.getFontMetrics(label.getFont()).stringWidth(fullText) > labelWidth) {
      int sep = fullText.indexOf(File.separatorChar, 4);
      if (sep < 0) return fullText;
      fullText = "..." + fullText.substring(sep);
    }

    return fullText;
  }
@Nls
  private static String getTitle2Text(@Nullable @Nls String fullText, @NotNull JLabel label)