void (@NotNull DataContext dataContext) { List<ShelvedChangeList> shelvedListsToDelete = TreeUtil.collectSelectedObjectsOfType(myTree, ShelvedChangeList.class); List<ShelvedChangeList> shelvedListsFromChanges = getShelvedLists(dataContext); List<ShelvedChange> selectedChanges = getShelveChanges(dataContext); List<ShelvedBinaryFile> selectedBinaryChanges = getBinaryShelveChanges(dataContext); deleteShelves(myProject, shelvedListsToDelete, shelvedListsFromChanges, selectedChanges, selectedBinaryChanges); }