replace IntSeq with List

since this can be done in one line using ```forEach```, I prefer to not add another public static helper method to the ```PatternMatcher``` class.