void (@NotNull PsiReferenceExpression expression) { final PsiElement resolved = expression.resolve(); if (resolved instanceof PsiVariable variable) { if (!(variable instanceof PsiField) && !inputVariables.contains(variable)) { localVarsUsed[0] = true; return; } } super.visitReferenceExpression(expression); }