Maybe I'd rename this method, it's confusing that it has the same name than CommandToken's matches() but a different signature.