boolean (PsiExpression expression) { expression = resolveExpression(expression); if (expression instanceof PsiNewExpression) return true; if (expression instanceof PsiMethodCallExpression) { List<? extends MethodContract> contracts = JavaMethodContractUtil.getMethodCallContracts((PsiCallExpression)expression); return ContractReturnValue.returnNew().equals(JavaMethodContractUtil.getNonFailingReturnValue(contracts)); } return false; }