void (@NotNull PsiReferenceExpression expression) { super.visitReferenceExpression(expression); PsiElement resolved = expression.resolve(); if (resolved instanceof PsiParameter && element.getManager().areElementsEquivalent(((PsiParameter)resolved).getDeclarationScope(), oldConstructor)) { int parameterIndex = oldConstructor.getParameterList().getParameterIndex((PsiParameter)resolved); if (parameterIndex >= 0) { replacement.put(expression, instanceCreationArguments[parameterIndex]); } } }