void (PsiLocalVariable target) { Collection<PsiReference> usages = ReferencesSearch.search(target).findAll(); for (PsiReference usage : usages) { PsiElement element = usage.getElement(); if (element.isValid() && element instanceof PsiExpression) { PsiMethodCallExpression call = ExpressionUtils.getCallForQualifier((PsiExpression)element); if (call != null && "toString".equals(call.getMethodExpression().getReferenceName())) { new CommentTracker().replaceAndRestoreComments(call, element); } } } }