import re


def get_indentation(line):
    """
    Take a line, and return its indentation as string
    """
    pattern = re.compile(r"(.*?)(\w|\})")
    match = pattern.search(line)
    if not match:
        return
    indentation = match.group(1)
    add_extra_indent = ('public', '}')
    if any(s in line for s in add_extra_indent):
        return indentation + indentation
    return indentation