code: public static JCTree referencedStatement(JCLabeledStatement tree) {
          JCTree t = tree;
          do t = ((JCLabeledStatement) t).body;
          while (t.hasTag(LABELLED));
          switch (t.getTag()) {
          case DOLOOP: case WHILELOOP: case FORLOOP: case FOREACHLOOP: case SWITCH:
              return t;
          default:
              return tree;
          }
      }
docs: Return the statement referenced by a label.
  If the label refers to a loop or switch, return that switch
  otherwise return the labelled statement itself