jdk8Optional联合Stream使用简单判空取值
原来判断
SspUnionPolicyDetailShowResp showResp = new SspUnionPolicyDetailShowResp();
InterestsCell interestsCell2 = null;
if (ObjectUtils.isNotEmpty(showResp)
&& ObjectUtils.isNotEmpty(showResp.getNonCarInfo())
&& ObjectUtils.isNotEmpty(showResp.getNonCarInfo().getInterestsCellList(