private static boolean coverSelectorType(@NotNull PsiElement context,
                                           @NotNull Set<? extends PatternDescription> patterns,
                                           @NotNull PsiType selectorType) {
    for (PatternDescription pattern : patterns) {
      if (pattern instanceof PatternTypeTestDescription &&
          PatternsInSwitchBlockHighlightingModel.cover(context, pattern.type(), selectorType)) {
        return true;
      }
    }
    return false;
  }
private static boolean coverSelectorType(@NotNull PsiElement context,
                                           @NotNull Set<? extends PatternDescription> patterns,
                                           @NotNull PsiType selectorType)