@staticmethod
def format_recommendations(msg, recommendations):
    """Add recommendations to the given message.

        The recommendation string looks like:
            <msg> Did you mean:
            <recommendations[0]>
            <recommendations[1]>
            <recommendations[2]>
        """
    if recommendations:
        msg += ' Did you mean:'
        for rec in recommendations:
            msg += '\n    %s' % rec
    return msg
