PathChooserDialog (@NotNull FileChooserDescriptor descriptor, @Nullable Project project, @Nullable Component parent) { var chooser = createNativePathChooserIfEnabled(descriptor, project, parent); return chooser != null ? chooser : useNewChooser(descriptor) ? new NewFileChooserDialogImpl(descriptor, parent, project) : parent != null ? new FileChooserDialogImpl(descriptor, parent, project) : new FileChooserDialogImpl(descriptor, project); }