code: func (e *TokensController) hasReferencedToken(serviceAccount *v1.ServiceAccount) (bool, error) {
  	if len(serviceAccount.Secrets) == 0 {
  		return false, nil
  	}
  	allSecrets, err := e.listTokenSecrets(serviceAccount)
  	if err != nil {
  		return false, err
  	}
  	referencedSecrets := getSecretReferences(serviceAccount)
  	for _, secret := range allSecrets {
  		if referencedSecrets.Has(secret.Name) {
  			return true, nil
  		}
  	}
  	return false, nil
  }
docs: // hasReferencedToken returns true if the serviceAccount references a service account token secret