private static @NlsSafe @Nullable String getItemText(Object value) {
    if (!(value instanceof NavigationItem)) {
      return null;
    }
    final ItemPresentation presentation = ((NavigationItem)value).getPresentation();
    if (presentation == null) {
      return null;
    }
    String containerText = presentation.getLocationString();
    if (StringUtil.isEmpty(containerText)) {
      return null;
    }
    return " " + containerText;
  }
private static @NlsSafe @Nullable String getItemText(Object value)