private static boolean isVararg(GrParameter p, GrParameter[] parameters) {
    return parameters[parameters.length - 1] == p && p.getType() instanceof PsiArrayType;
  }
private static boolean isVararg(GrParameter p, GrParameter[] parameters)