@Override
    public void visitExpressionStatement(@NotNull PsiExpressionStatement statement) {
      final PsiElement parent = statement.getParent();
      if (!(parent instanceof PsiSwitchLabeledRuleStatement switchLabeledRuleStatement)) {
        return;
      }
      final PsiSwitchBlock block = switchLabeledRuleStatement.getEnclosingSwitchBlock();
      if (!(block instanceof PsiSwitchExpression switchExpression)) {
        return;
      }
      expectedType = switchExpression.getType();
    }
@Override
    public void visitExpressionStatement(@NotNull PsiExpressionStatement statement)