void (@NotNull AnActionEvent e, @NotNull Notification notification) { ShelveChangesManager manager = ShelveChangesManager.getInstance(myProject); List<ShelvedChangeList> cantRestoreList = findAll(myListDateMap.keySet(), l -> l == null || !manager.getDeletedLists().contains(l)); myListDateMap.forEach((l, d) -> manager.restoreList(l, d)); notification.expire(); if (!cantRestoreList.isEmpty()) { VcsNotifier.getInstance(myProject).notifyMinorWarning(SHELVE_DELETION_UNDO, VcsBundle.message("shelve.undo.deletion"), VcsBundle.message("shelve.changes.restore.error", cantRestoreList.size())); } }