code: public static boolean isControlStructure(Node n) {
      switch (n.getToken()) {
        case FOR:
        case FOR_IN:
        case FOR_OF:
        case FOR_AWAIT_OF:
        case DO:
        case WHILE:
        case WITH:
        case IF:
        case LABEL:
        case TRY:
        case CATCH:
        case SWITCH:
        case CASE:
        case DEFAULT_CASE:
          return true;
        default:
          return false;
      }
    }
docs: Determines whether the given node is a FOR, DO, WHILE, WITH, or IF node.