boolean (@NotNull PsiMethod method) { final PsiCodeBlock body = method.getBody(); if (body == null) { return false; } final ReturnChecker checker = new ReturnChecker(r -> ExpressionUtils.isNullLiteral(r.getReturnValue())); body.accept(checker); return checker.isReturnFound() ? checker.allReturnsMatchPredicate() : !ControlFlowUtils.codeBlockMayCompleteNormally(body); }