void (@NotNull PsiReferenceExpression expression) { super.visitReferenceExpression(expression); if (expression.resolve() instanceof PsiVariable variable && isWrittenInside(variable)) { outputVariables.add(variable); } }