docs: public static boolean isEmptyBlock(Statement origStatement) {
          Stack<ASTNode> stack = new Stack<ASTNode>();
          stack.push(origStatement);
  
          while (!stack.isEmpty()) {
              ASTNode statement = stack.pop();
              if (!(statement instanceof BlockStatement)) {
                  return false;
              }
              if (((BlockStatement) statement).isEmpty()) {
                  return true;
              }
              if (((BlockStatement) statement).getStatements().size() != 1) {
                  return false;
              }
              stack.push(((BlockStatement) statement).getStatements().get(0));
          }
          return false;
      }