def load_config(self, workspace_root: Path) -> WorkspaceConfig:
    configurations = load_configurations(workspace_root)
    configuration_index = load_default_configuration_num(workspace_root)
    if (configuration_index > (len(configurations) - 1)):
        raise ConfigurationError(f'Configuration #{(configuration_index + 1)} requested but there are only {len(configurations)} declared')
    ignores = load_ignores(workspace_root)
    return WorkspaceConfig(root=workspace_root, configurations=configurations, default_configuration=configuration_index, ignores=ignores, includes=SyncRules.new())
def load_config(self, workspace_root: Path) -> WorkspaceConfig:
    configurations = load_configurations(workspace_root)
    configuration_index = load_default_configuration_num(workspace_root)
    if (configuration_index > (len(configurations) - 1)):
        raise ConfigurationError(f'Configuration #{(configuration_index + 1)} requested but there are only {len(configurations)} declared')
    ignores = load_ignores(workspace_root)
    return WorkspaceConfig(root=workspace_root, configurations=configurations, default_configuration=configuration_index, ignores=ignores, includes=SyncRules.new())