void (@NotNull PsiReferenceExpression referenceExpression) { if (used) { return; } super.visitReferenceExpression(referenceExpression); final PsiElement target = referenceExpression.resolve(); if (target == null) { return; } if (target.equals(variable) && !isCloseMethodCalled(referenceExpression)) { used = true; } }