boolean (@NotNull DataContext dataContext) { if (mySelectedContainer == null || mySelectionModel.isSelectionEmpty()) { return false; } int[] selection = getSelectedCells(null); return mySelectedContainer.getGridCellCount(myIsRow) - selection.length >= mySelectedContainer.getGridLayoutManager().getMinCellCount(); }