boolean () { final PsiElement body = getBody(); if (body instanceof PsiCodeBlock) { for (PsiReturnStatement statement : PsiUtil.findReturnStatements((PsiCodeBlock)body)) { if (statement.getReturnValue() != null) { return false; } } } return true; }