void (@NotNull PsiYieldStatement statement) { final PsiSwitchExpression enclosingExpression = statement.findEnclosingExpression(); if (!isInside(enclosingExpression)) { addSideEffect(); return; } super.visitYieldStatement(statement); }