void () { final String oldProgressTitle = myProgressIndicator.getText(); GitStashOperations.unstash(myProject, myStashedRoots, (root) -> { String message = GitBundle.message("stash.unstash.progress.indicator.title", root.getName()); myProgressIndicator.setText(message); GitLineHandler handler = new GitLineHandler(myProject, root, GitCommand.STASH); handler.addParameters("pop"); if (GitStageManagerKt.isStagingAreaAvailable(myProject)) { handler.addParameters("--index"); } return handler; }, new UnstashConflictResolver(myProject, myGit, myStashedRoots.keySet(), myParams)); myProgressIndicator.setText(oldProgressTitle); }