void (@NotNull AnActionEvent e) { final DirDiffTableModel model = SetOperationToBase.getModel(e); final JTable table = SetOperationToBase.getTable(e); if (table != null && model != null && model.isOperationsEnabled()) { for (DirDiffElementImpl element : model.getSelectedElements()) { if (element.getOperation() != DirDiffOperation.NONE) { e.getPresentation().setEnabled(true); return; } } } e.getPresentation().setEnabled(false); }