Correct checking of provided BasePattern classes