void (@NotNull IfStatement ifStatement) { List<StatEdge> ifStatementBreakEdges = ifStatement.getSuccessorEdges(EdgeType.BREAK); if (ifStatementBreakEdges.size() != 1) return; Statement lastStatement = ifStatement.getStats().get(ifStatement.getStats().size() - 1); List<StatEdge> lastStatementBreakEdges = lastStatement.getSuccessorEdges(EdgeType.BREAK); if (lastStatementBreakEdges.size() != 1) return; StatEdge firstIfStatementBreakEdge = ifStatementBreakEdges.get(0); StatEdge lastStatementBreakEdge = lastStatementBreakEdges.get(0); if (firstIfStatementBreakEdge.getDestination() != lastStatementBreakEdge.getDestination()) { ifStatement.removeSuccessor(firstIfStatementBreakEdge); } }