code: public List<JCCase> translateCases(List<JCCase> trees) {
          for (List<JCCase> l = trees; l.nonEmpty(); l = l.tail)
              l.head = translate(l.head);
          return trees;
      }
docs: Visitor method: translate a list of case parts of switch statements.