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