void (@NotNull PsiMethodCallExpression call) { super.visitMethodCallExpression(call); PsiMethod method = call.resolveMethod(); if (method != null) { List<StandardMethodContract> contracts = JavaMethodContractUtil.getMethodContracts(method); ContractReturnValue value = JavaMethodContractUtil.getNonFailingReturnValue(contracts); if (ContractReturnValue.returnNew().equals(value) && isPerformedRepeatedlyInLoop(call)) { registerMethodCallError(call, Kind.METHOD_CALL); } } }