void (@NotNull AnActionEvent e) { DirDiffTableModel model = SetOperationToBase.getModel(e); e.getPresentation().setEnabledAndVisible(model != null && model.getSelectedElements().stream().anyMatch( it -> isChangedOrEqual(it) && Objects.equals(model.getReplacementName(it), it.getTargetName()) )); }