void (@NotNull AnActionEvent e) { List<VirtualFile> files = e.getData(VcsDataKeys.MODIFIED_WITHOUT_EDITING_DATA_KEY); boolean enabled = files != null && !files.isEmpty(); e.getPresentation().setEnabledAndVisible(enabled); }