public static Optional<AssignExpr> getAssignExpression(final BlockStmt body, final String assignExpressionName) {
        final List<AssignExpr> assignExprs = body.findAll(AssignExpr.class);
        return assignExprs.stream()
                .filter(assignExpr -> assignExpressionName.equals(assignExpr.getTarget().asNameExpr().getNameAsString()))
                .findFirst();
    }
@Test
    void getAssignExpression() {
        BlockStmt body = new BlockStmt();
        Optional<AssignExpr> retrieved = CommonCodegenUtils.getAssignExpression(body, "NOMATCH");
        assertThat(retrieved).isNotNull();
        assertThat(retrieved).isNotPresent();
        AssignExpr assignExpr = new AssignExpr();
        assignExpr.setTarget(new NameExpr("MATCH"));
        body.addStatement(assignExpr);
        retrieved = CommonCodegenUtils.getAssignExpression(body, "NOMATCH");
        assertThat(retrieved).isNotNull();
        assertThat(retrieved).isNotPresent();
        retrieved = CommonCodegenUtils.getAssignExpression(body, "MATCH");
        assertThat(retrieved).isNotNull();
        assertThat(retrieved).isPresent();
        AssignExpr retrievedAssignExpr = retrieved.get();
        assertThat(retrievedAssignExpr).isEqualTo(assignExpr);
    }