void (@NotNull ActionContext context, @NotNull PsiNewExpression expression, @NotNull ModPsiUpdater updater) { final PsiExpressionList arguments = expression.getArgumentList(); if (arguments == null) return; final PsiMethod constructor = expression.resolveConstructor(); if (constructor == null) return; final PsiExpressionList newArguments = createNewArguments( JavaPsiFacade.getElementFactory(context.project()), constructor.getParameterList().getParameters(), arguments.getExpressions() ); if (newArguments == null) return; arguments.replace(newArguments); }