private boolean canAdd ( SubsetSolution solution , Set < Integer > addCandidates ) { return ! addCandidates . isEmpty ( ) && isValidSubsetSize ( solution . getNumSelectedIDs ( ) + 1 ) ; }
Check if it is allowed to add one more item to the selection .