String (@NotNull PsiExpression expression, @Nullable PsiType type) { String expectedType = tryGetWeakestAccessibleExpectedType(expression); if (expectedType != null) return expectedType; return type != null ? nearestAccessibleType(type).getCanonicalText() : null; }