boolean (@NotNull AnActionEvent e) { ChangeList[] changeLists = e.getData(VcsDataKeys.CHANGE_LISTS); if (changeLists == null) { return true; } for (ChangeList list : changeLists) { if (list instanceof CommittedChangeList) { if (!((CommittedChangeList)list).isModifiable()) { return false; } } } return true; }