void () { if (myFileDialog == null) return; JBRFileDialog jbrDialog = JBRFileDialog.get(myFileDialog); if (jbrDialog != null) { jbrDialog.setLocalizationStrings(IdeBundle.message("windows.native.common.dialog.open"), IdeBundle.message("windows.native.common.dialog.select.folder")); int hints = jbrDialog.getHints(); if (myFileChooserDescriptor.isChooseFolders()) hints |= JBRFileDialog.SELECT_DIRECTORIES_HINT; if (myFileChooserDescriptor.isChooseFiles() || (myFileChooserDescriptor.isChooseJars() && myFileChooserDescriptor.isChooseJarsAsFiles())) { hints |= JBRFileDialog.SELECT_FILES_HINT; } jbrDialog.setHints(hints); } }