void () { final FileChooserDescriptor descriptor = new FileChooserDescriptor(true, false, false, false, false, false) { @Override public boolean isFileVisible(VirtualFile file, boolean showHiddenFiles) { return super.isFileVisible(file, showHiddenFiles) && (file.isDirectory() || file.getName().equalsIgnoreCase(ManifestFileUtil.MANIFEST_FILE_NAME)); } }; descriptor.setTitle(JavaCompilerBundle.message("specify.path.to.manifest.mf.file")); final VirtualFile file = FileChooser.chooseFile(descriptor, myContext.getProject(), null); if (file == null) return; ManifestFileUtil.addManifestFileToLayout(file.getPath(), myContext, myElement); updateManifest(); myContext.getThisArtifactEditor().updateLayoutTree(); }