void (@NotNull PsiReturnStatement statement) { super.visitReturnStatement(statement); final PsiExpression value = PsiUtil.deparenthesizeExpression(statement.getReturnValue()); if (!(value instanceof PsiReferenceExpression referenceExpression)) { return; } final PsiElement target = referenceExpression.resolve(); if (boundVariable.equals(target)) { escaped = true; } }