can_be_unstashed = function(pane)
if not pane.is_stash then return end
assert(pane.filename)
local filename = unstash_filename(pane.filename)
return not has_local_modifications(filename)
end