private static boolean usedOutside(@NotNull StatEdge edge,
                                     @NotNull AssignmentExprent assignmentExprent) {
    Exprent left = assignmentExprent.getLeft();
    if (!(left instanceof VarExprent varExprent)) return false;
    Statement destination = edge.getDestination();
    if (destination == null) return false;
    List<Exprent> exprents = destination.getExprents();
    if (exprents == null) return false;
    return exprents.stream()
      .anyMatch(exp -> exp.containsExprent(varExprent));
  }
private static boolean usedOutside(@NotNull StatEdge edge,
                                     @NotNull AssignmentExprent assignmentExprent)