void () { if (mySynchronous) { String dialogTitle = VcsBundle.message("change.list.manager.wait.lists.synchronization.modal", myTitle, myTitle != null ? 1 : 0); new ModalWaiter(myProject, dialogTitle, myCanBeCancelled).queue(); } else { String progressTitle = VcsBundle.message("change.list.manager.wait.lists.synchronization.background", myTitle, myTitle != null ? 1 : 0); new BackgroundableWaiter(myProject, progressTitle, myCanBeCancelled).queue(); } }