GrArgumentList (GrExpression... expressions) { @NonNls StringBuilder text = new StringBuilder(); text.append("ven ("); for (GrExpression expression : expressions) { text.append(expression.getText()).append(", "); } if (expressions.length > 0) { text.delete(text.length() - 2, text.length()); } text.append(')'); PsiFile file = createGroovyFileChecked(text); assert file.getChildren()[0] != null && (file.getChildren()[0] instanceof GrMethodCallExpression); return (((GrMethodCallExpression) file.getChildren()[0])).getArgumentList(); }