[groovy] cleanup: make TokenSets interface