private GroovyControlFlow doBuildFlatControlFlow(GroovyPsiElement scope) {
    var topOwner = ControlFlowUtils.getTopmostOwner(scope);
    if (topOwner == null) {
      return new GroovyControlFlow(Instruction.EMPTY_ARRAY, getDescriptorMapping());
    }

    myFinallyCount = 0;
    myInstructionNumber = 0;

    myScope = scope;

    startNode(null);
    topOwner.accept(this);

    InstructionImpl end = startNode(null);
    checkPending(end);
    return new GroovyControlFlow(myInstructions.toArray(Instruction.EMPTY_ARRAY), getDescriptorMapping());
  }
private GroovyControlFlow doBuildFlatControlFlow(GroovyPsiElement scope)