void (@NotNull final AnActionEvent e) { final Project project = e.getRequiredData(CommonDataKeys.PROJECT); ShelveChangesManager shelveChangesManager = ShelveChangesManager.getInstance(project); List<ShelvedChangeList> lists = e.getRequiredData(ShelvedChangesViewManager.SHELVED_DELETED_CHANGELIST_KEY); Date currentDate = new Date(System.currentTimeMillis()); lists.forEach(l -> shelveChangesManager.restoreList(l, currentDate)); }