def METHOD_NAME(self, block_index_to_statement: FOR_EACH_BLOCK_TYPE) -> None:
    for block_idx, statement in block_index_to_statement.items():
        if not statement:
            continue
        if isinstance(statement, int):
            self._create_new_resources_count(statement, block_idx)
        else:
            self._create_new_resources_foreach(statement, block_idx)