boolean (@NotNull Set<? extends PatternDescription> patterns, @NotNull PsiType selectorType) { for (PatternDescription pattern : patterns) { if (pattern instanceof PatternTypeTestDescription && SwitchBlockHighlightingModel.oneOfUnconditional(pattern.type(), selectorType)) { return true; } } return false; }