void (@NotNull PsiYieldStatement statement) { final PsiSwitchExpression enclosingExpression = statement.findEnclosingExpression(); if (enclosingExpression == null || !PsiTreeUtil.isAncestor(myStartElement, enclosingExpression, false)) { if (addSideEffect(statement)) return; } super.visitYieldStatement(statement); }