public static boolean isVarArgsImpl(GrClosureParameter @NotNull [] parameters) {
    return parameters.length > 0 && parameters[parameters.length - 1].getType() instanceof PsiArrayType;
  }
public static boolean isVarArgsImpl(GrClosureParameter @NotNull [] parameters)