boolean (@NotNull Project project, @NotNull Map<GitRepository, List<GitCommit>> history, @NotNull Map<GitRepository, String> baseBranches, @NotNull String removedBranch) { AtomicBoolean restore = new AtomicBoolean(); ApplicationManager.getApplication().invokeAndWait(() -> restore.set( GitBranchIsNotFullyMergedDialog.showAndGetAnswer(myProject, history, baseBranches, removedBranch))); return restore.get(); }