private PsiSubstitutor inferTypeArguments(@NotNull PsiNewExpression newExpression) {
    final JavaPsiFacade facade = JavaPsiFacade.getInstance(newExpression.getProject());
    final PsiResolveHelper resolveHelper = facade.getResolveHelper();
    final PsiParameter[] parameters = myTargetMethod.getParameterList().getParameters();
    final PsiExpressionList argumentList = newExpression.getArgumentList();
    LOG.assertTrue(argumentList != null);
    final PsiExpression[] expressions = argumentList.getExpressions();
    return resolveHelper.inferTypeArguments(myPsiClass.getTypeParameters(), parameters, expressions,
                                            PsiSubstitutor.EMPTY,
                                            newExpression.getParent(),
                                            DefaultParameterTypeInferencePolicy.INSTANCE);
  }
private PsiSubstitutor inferTypeArguments(@NotNull PsiNewExpression newExpression)