boolean ( PsiCodeBlock block, PsiMethod method, boolean endsInImplicitReturn) { if (block == null) { return true; } final PsiStatement[] statements = block.getStatements(); for (final PsiStatement statement : statements) { if (statementMayReturnBeforeRecursing(statement, method)) { return true; } if (statementDefinitelyRecurses(statement, method)) { return false; } } return endsInImplicitReturn; }