private boolean edgeCanBeWayOutOfRoot(@Nullable DoStatement doStatement, @NotNull StatEdge edge) {
      return edge.getDestination() instanceof DummyExitStatement ||
             (doStatement == null && edge.closure == myRootSwitchStatement) ||
             (doStatement != null && edge.closure == doStatement) ||
             (doStatement != null &&
              edge.closure instanceof DoStatement upperDoStatement &&
              upperDoStatement.containsStatement(doStatement)) ||
             outsideCatch(edge, doStatement);
    }
private boolean edgeCanBeWayOutOfRoot(@Nullable DoStatement doStatement, @NotNull StatEdge edge)