void (@NotNull HighlightInfo.Builder info, @NotNull TextRange textRange,@NotNull PsiExpression expression, @Nullable PsiType expectedType) { PsiType actualType; if (PsiPolyExpressionUtil.isPolyExpression(expression)) { actualType = ((PsiExpression)expression.copy()).getType(); } else { actualType = expression.getType(); } registerExpectedTypeFixes(info, textRange, expression, expectedType, actualType); }