def METHOD_NAME() -> str:
    """Finds the current Nomulus root directory.
    Returns:
        The absolute path to the Nomulus root directory.
    """
    for folder in pathlib.Path(__file__).parents:
        if not folder.joinpath('rollback_tool').exists():
            continue
        if not folder.joinpath('settings.gradle').exists():
            continue
        with open(folder.joinpath('settings.gradle'), 'r') as file:
            for line in file:
                if re.match(r"^rootProject.name\s*=\s*'nomulus'\s*$", line):
                    return folder.absolute()
    raise RuntimeError(
        'Do not move this file out of the Nomulus directory tree.')