boolean (PsiExpression expression, Function<? super PsiExpression, ? extends PsiMethod> methodResolver) { if (isInAssignmentOrInvocationContext(expression) && ((PsiCallExpression)expression).getTypeArguments().length == 0) { PsiMethod method = methodResolver.apply(expression); return method == null || isMethodCallTypeDependsOnInference(expression, method); } return false; }