@NotNull
  public static List<GrStatement> collectReturns(Instruction @NotNull [] flow, @NotNull GroovyPsiElement element, final boolean allExitPoints) {
    boolean[] visited = new boolean[flow.length];
    var collector = new ExitPointCollector(allExitPoints ? MaybeReturnInstruction.class : null, GrReturnStatement.class);
    visitAllExitPointsInner(flow[flow.length - 1], flow[0], visited, collector);
    return collector.getCollectedStatements();
  }
@NotNull
  public static List<GrStatement> collectReturns(Instruction @NotNull [] flow, @NotNull GroovyPsiElement element, final boolean allExitPoints)