void (@NotNull PsiReferenceExpression expression) { super.visitReferenceExpression(expression); final PsiElement resolve = expression.resolve(); if (resolve instanceof PsiVariable) { final String newName = names.get(resolve); if (newName != null) { replacements.put(expression, elementFactory.createExpressionFromText(newName, expression)); } } }