private static boolean checkRegularEdgesForRecordPattern(@NotNull Statement parent) {
    for (int i = 0; i < parent.getStats().size(); i++) {
      Statement statement = parent.getStats().get(i);
      if (i != parent.getStats().size() - 1) {
        List<StatEdge> edges = statement.getSuccessorEdges(StatEdge.EdgeType.DIRECT_ALL);
        if (edges.size() != 1) {
          return true;
        }
        StatEdge edge = edges.get(0);
        if (edge.getType() != StatEdge.EdgeType.REGULAR || edge.getDestination() != parent.getStats().get(i + 1)) {
          return true;
        }
      }
    }
    return false;
  }
private static boolean checkRegularEdgesForRecordPattern(@NotNull Statement parent)