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