Add diff method to ViolationList

These 4 lines should be in a private method with descriptive name.

And reuse for the `B` case.