String (@NotNull PsiExpression expression, @Nullable PsiClass psiClass) { String expectedType = tryGetWeakestAccessibleExpectedType(expression); if (expectedType != null) return expectedType; return nearestAccessibleBaseClassName(psiClass); }