void (@NotNull Project project, @NotNull PsiElement referenceName, @NotNull ModPsiUpdater updater) { final GrReferenceExpression invokedExpression = (GrReferenceExpression) referenceName.getParent(); final GrMethodCallExpression callExpression = (GrMethodCallExpression) invokedExpression.getParent(); final GrArgumentList argumentList = callExpression.getArgumentList(); final GrExpression[] args = argumentList.getExpressionArguments(); GrInspectionUtil.replaceExpression(callExpression, invokedExpression.getQualifierExpression().getText() + '[' + args[0].getText() + "]=" + args[1].getText()); }