@NotNull Map<PsiCaseLabelElement, PsiElement> findDominatedLabels(@NotNull List<? extends PsiElement> switchLabels) {
    Map<PsiCaseLabelElement, PsiElement> result = new HashMap<>();
    for (int i = 0; i < switchLabels.size() - 1; i++) {
      PsiElement current = switchLabels.get(i);
      if (result.containsKey(current)) continue;
      for (int j = i + 1; j < switchLabels.size(); j++) {
        PsiElement next = switchLabels.get(j);
        if (!(next instanceof PsiCaseLabelElement nextElement)) continue;
        boolean dominated = isDominated(nextElement, current, mySelectorType);
        if (dominated) {
          result.put(nextElement, current);
        }
      }
    }
    return result;
  }
@NotNull Map<PsiCaseLabelElement, PsiElement> findDominatedLabels(@NotNull List<? extends PsiElement> switchLabels)