class CommonCodegenUtils {

    public static Optional<NameExpr> getExplicitConstructorInvocationParameter(final ExplicitConstructorInvocationStmt constructorInvocationStmt, final String parameterName) {
        return constructorInvocationStmt.getArguments()
                .stream()
                .filter(expression -> expression instanceof NameExpr && ((NameExpr)expression).getName().asString().equals(parameterName))
                .map(expression -> (NameExpr)expression )
                .findFirst();
    }

    private  CommonCodegenUtils();

}