public static @Nullable ExpectedTypeInfo getSingleExpectedTypeForCompletion(@Nullable PsiExpression expr) {
    ExpectedTypeInfo[] expectedTypes = getExpectedTypes(expr, true, ourGlobalScopeClassProvider, false, false, 1);
    if (expectedTypes.length > 0) {
      return expectedTypes[0];
    }
    return null;
  }
public static @Nullable ExpectedTypeInfo getSingleExpectedTypeForCompletion(@Nullable PsiExpression expr)