boolean (@Nullable PsiCodeBlock block) { if (block == null) { return false; } final PsiStatement[] statements = block.getStatements(); for (PsiStatement statement : statements) { if (statementThrowsException(statement)) { return true; } } return false; }