void (@NotNull Project project, @NotNull PsiElement startElement, @NotNull ModPsiUpdater updater) { final PsiElement element = startElement.getParent().getParent(); if (!(element instanceof PsiMethodCallExpression methodCallExpression)) { return; } final PsiExpressionList argumentList = methodCallExpression.getArgumentList(); final PsiExpression argument = ExpressionUtils.getFirstExpressionInList(argumentList); if (argument == null) { return; } final PsiReferenceExpression methodExpression = methodCallExpression.getMethodExpression(); final PsiExpression qualifier = PsiUtil.skipParenthesizedExprDown(methodExpression.getQualifierExpression()); if (qualifier == null) { return; } final PsiNewExpression newExpression = findNewExpression(qualifier); if (newExpression == null) { return; } final PsiExpressionList argumentList1 = newExpression.getArgumentList(); if (argumentList1 == null) { return; } final PsiElement newElement = argumentList1.add(argument); updater.highlight(newElement); final PsiElement parent = methodCallExpression.getParent(); if (parent instanceof PsiExpressionStatement) { parent.delete(); } else { methodCallExpression.replace(qualifier); } }