ClassMethod checkStrictType refactoring - rewrite n cases to one