void (@NotNull AnActionEvent e) { final Project project = myPreselectedRepo.getProject(); StoreUtil.saveDocumentsAndProjectSettings(project); ChangeListManager.getInstance(project).invokeAfterUpdateWithModal( true, VcsBundle.message("waiting.changelists.update.for.show.commit.dialog.message"), () -> commitAndCloseBranch(project)); }