SI-8597 Improved pattern unchecked warnings

`matchesPattern` has a long and winding history.
SI-8597 don't call improved matchesPattern from 2.11 mode inference