void (@Nullable HighlightInfo.Builder highlightInfo, @Nullable PsiExpression expr, @NotNull PsiType toType) { if (expr instanceof PsiMethodCallExpression) { PsiMethod method = ((PsiMethodCallExpression)expr).resolveMethod(); if (method != null) { IntentionAction action = PriorityIntentionActionWrapper .lowPriority(QuickFixFactory.getInstance().createMethodReturnFix(method, toType, true)); if (highlightInfo != null) { highlightInfo.registerFix(action, null, null, null, null); } } } }