boolean (@Nullable PsiExpression expression) { if (expression == null) { return false; } if (ExpressionUtils.nonStructuralChildren(expression).allMatch( expr -> expr instanceof PsiMethodCallExpression && isNotNull(((PsiMethodCallExpression)expr).resolveMethod()))) { return true; } return NullabilityUtil.getExpressionNullability(expression, true) == Nullability.NOT_NULL; }