static boolean isArrayTypeExpected(PsiExpression expr) {
    return ContainerUtil.exists(ExpectedTypesProvider.getExpectedTypes(expr, true),
                                info -> {
                                  if (info.getType() instanceof PsiArrayType) {
                                    PsiMethod method = info.getCalledMethod();
                                    return method == null || !method.isVarArgs() || !(expr.getParent() instanceof PsiExpressionList) ||
                                           MethodCallUtils.getParameterForArgument(expr) != null;
                                  }
                                  return false;
                                });
  }
static boolean isArrayTypeExpected(PsiExpression expr)