@staticmethod
def _get_indentation(text):
    """
        Returns a string that is made
        of all the spaces at the beginning of `text`.
        """
    i = 0
    length = len(text)
    indentation = ''
    while i < length and text[i].isspace():
        indentation += text[i]
        i += 1
    if indentation != '':
        return indentation
    return None
