private static @NlsContexts.DialogTitle String getChooserTitle(final FileChooserDescriptor descriptor) {
    final String title = descriptor.getTitle();
    return title != null ? title : UIBundle.message("file.chooser.default.title");
  }
private static @NlsContexts.DialogTitle String getChooserTitle(final FileChooserDescriptor descriptor)