private static boolean assignedFromMethodCall(PsiExpression expression) {
      if (expression instanceof PsiAssignmentExpression assignmentExpression) {
        return assignedFromMethodCall(assignmentExpression.getRExpression());
      }
      if (expression instanceof PsiNewExpression) {
        return false;
      }
      if (expression instanceof PsiMethodCallExpression methodCallExpression) {
        List<? extends MethodContract> contracts = JavaMethodContractUtil.getMethodCallContracts(methodCallExpression);
        for (MethodContract contract : contracts) {
          if (contract.getReturnValue() == ContractReturnValue.returnNew()) {
            return false;
          }
        }
        return true;
      }
      return false;
    }
private static boolean assignedFromMethodCall(PsiExpression expression)