private boolean canRemove ( SubsetSolution solution , Set < Integer > deleteCandidates ) { return ! deleteCandidates . isEmpty ( ) && isValidSubsetSize ( solution . getNumSelectedIDs ( ) - 1 ) ; }
Check if it is allowed to remove one more item from the selection .