String (DataContext dataContext) { Project project = CommonDataKeys.PROJECT.getData(dataContext); final FileChooserDescriptor descriptor = FileChooserDescriptorFactory.createSingleLocalFileDescriptor(); final VirtualFile[] result = IdeUiService.getInstance().chooseFiles(descriptor, project, null); return result.length == 1? FileUtil.toSystemDependentName(result[0].getPath()) : null; }