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