Introduce the StatementListProvider interface

So that it's possible to use type hints to recognize whether
something can hold Statements.