private static @Nullable PsiExpressionList createNewArguments(@NotNull PsiElementFactory factory,
                                                                PsiParameter @NotNull [] parameters,
                                                                PsiExpression @NotNull [] arguments) {
    final String[] newValues = createArguments(parameters, arguments);
    if (newValues == null) return null;

    final PsiExpressionList result = ((PsiNewExpression)factory.createExpressionFromText("new Object()", parameters[0])).getArgumentList();
    if (result == null) return null;
    for (String value : newValues) {
      result.add(factory.createExpressionFromText(value, parameters[0]));
    }
    return result;
  }
private static @Nullable PsiExpressionList createNewArguments(@NotNull PsiElementFactory factory,
                                                                PsiParameter @NotNull [] parameters,
                                                                PsiExpression @NotNull [] arguments)