private static void changeDefaultToFullCase(@NotNull SwitchStatement myRoot, @NotNull VarExprent newSwitch) {
      List<List<StatEdge>> edges = myRoot.getCaseEdges();
      for (int i = 0; i < edges.size(); i++) {
        List<StatEdge> statEdges = edges.get(i);
        if (statEdges.size() == 1 && statEdges.get(0) == myRoot.getDefaultEdge()) {
          Statement defaultStatement = myRoot.getCaseStatements().get(i);
          Statement statementWithFirstAssignment = getStatementWithFirstAssignment(defaultStatement);
          if (statementWithFirstAssignment != null &&
              statementWithFirstAssignment.getExprents() != null &&
              !statementWithFirstAssignment.getExprents().isEmpty() &&
              statementWithFirstAssignment.getExprents().get(0) instanceof AssignmentExprent assignmentExprent &&
              assignmentExprent.getRight() != null &&
              assignmentExprent.getLeft() instanceof VarExprent newVarExprent &&
              assignmentExprent.getLeft().getExprType() != null &&
              assignmentExprent.getRight().equals(newSwitch) &&
              assignmentExprent.getLeft().getExprType().equals(newSwitch.getExprType())) {
            statementWithFirstAssignment.getExprents().remove(0);
            List<@Nullable Exprent> defaultValues = myRoot.getCaseValues().get(i);
            defaultValues.clear();
            defaultValues.add(newVarExprent);
            myRoot.setUseCustomDefault();
            break;
          }
        }
      }
    }
private static void changeDefaultToFullCase(@NotNull SwitchStatement myRoot, @NotNull VarExprent newSwitch)