String () { FileChooserDescriptor descriptor = new FileChooserDescriptor(true, false, false, false, false, false) { @Override public boolean isFileVisible(VirtualFile virtualFile, boolean showHidden) { if(!showHidden && virtualFile.getName().charAt(0) == '.') return false; return virtualFile.isDirectory() || "xml".equals(virtualFile.getExtension()) || "yaml".equals(virtualFile.getExtension()); } }; descriptor.setDescription((TestngBundle.message("testng.suite.browser.select.xml.or.yaml.suite.file"))); descriptor.setTitle(TestngBundle.message("testng.suite.browser.select.suite")); VirtualFile file = FileChooser.chooseFile(descriptor, getProject(), null); return file != null ? file.getPath() : null; }