protected @NotNull @NlsSafe String chosenFileToResultingText(@NotNull VirtualFile chosenFile) {
    var descriptor = BrowseFolderDescriptor.asBrowseFolderDescriptor(myFileChooserDescriptor);
    var convertFileToText = descriptor.getConvertFileToText();
    if (convertFileToText != null) {
      return convertFileToText.invoke(chosenFile);
    }
    var convertPathToText = descriptor.getConvertPathToText();
    if (convertPathToText != null) {
      return convertPathToText.invoke(chosenFile.getPath());
    }
    return chosenFile.getPresentableUrl();
  }
protected @NotNull @NlsSafe String chosenFileToResultingText(@NotNull VirtualFile chosenFile)