Callable<DiffElement<VirtualFile>> (final Project project) { return () -> { final FileChooserDescriptor descriptor = getChooserDescriptor(); final VirtualFile[] result = FileChooser.chooseFiles(descriptor, project, getValue()); return result.length == 1 ? createElement(result[0]) : null; }; }