Make debug output of SetupPatternGenerator more useful.
Separate the verification process of pattern generator setups as private api function,
to be able to call it from many places.