Use Statements helper class to match against patterns.

Change-Id: I9ad6d652cec33c61bb12a58918c19234064a35cd