static @Nullable PathChooserDialog createNativePathChooserIfEnabled(
    @NotNull FileChooserDescriptor descriptor,
    @Nullable Project project,
    @Nullable Component parent
  ) {
    return canUseNativeDialog(descriptor) ? new NativeFileChooserDialogImpl(descriptor, parent, project) : null;
  }
static @Nullable PathChooserDialog createNativePathChooserIfEnabled(
    @NotNull FileChooserDescriptor descriptor,
    @Nullable Project project,
    @Nullable Component parent
  )