class ExpressionFunctionUtils {

    static MethodDeclaration getExpressionMethodDeclaration(final String methodName, final String variableName,
                                                            final BlockStmt body,
                                                            final ClassOrInterfaceType returnedType,
                                                            final LinkedHashMap<String, ClassOrInterfaceType> parameterNameTypeMap) {
        final ReturnStmt returnStmt = getReturnStmt(variableName);
        body.addStatement(returnStmt);
        MethodDeclaration toReturn = getMethodDeclaration(methodName, parameterNameTypeMap);
        toReturn.setType(returnedType);
        toReturn.setBody(body);
        return toReturn;
    }

    private  ExpressionFunctionUtils();

}