@Override
  void checkSwitchSelectorType(@NotNull Consumer<? super HighlightInfo.Builder> errorSink) {
    if (mySelectorKind == SelectorKind.INT) return;
    if (mySelectorKind == null && !PsiTreeUtil.hasErrorElements(myBlock)) {
      HighlightInfo.Builder info = createError(mySelector, JavaErrorBundle.message("switch.invalid.selector.types",
                                                                                   JavaHighlightUtil.formatType(mySelectorType)));
      registerFixesOnInvalidSelector(info);
      if (mySelectorType instanceof PsiPrimitiveType) {
        HighlightUtil.registerIncreaseLanguageLevelFixes(mySelector, JavaFeature.PRIMITIVE_TYPES_IN_PATTERNS, info);
      }
      errorSink.accept(info);
    }
    checkIfAccessibleType(errorSink);
  }
@Override
  void checkSwitchSelectorType(@NotNull Consumer<? super HighlightInfo.Builder> errorSink)