private static int getNonVarargCount(JavaChangeInfo changeInfo, PsiExpression[] args) {
    if (!changeInfo.wasVararg()) return args.length;
    return changeInfo.getOldParameterTypes().length - 1;
  }
private static int getNonVarargCount(JavaChangeInfo changeInfo, PsiExpression[] args)