List<ControlFlowEdge> (@NotNull ControlFlow flow, int start) { final List<ControlFlowEdge> list = new ArrayList<>(); depthFirstSearch(flow, new InstructionClientVisitor<Void>() { @Override public void visitInstruction(Instruction instruction, int offset, int nextOffset) { list.add(new ControlFlowEdge(offset, nextOffset)); } @Override public Void getResult() { return null; } }, start, flow.getSize()); return list; }