boolean (LighterASTNode statement) { if (statement == null) return false; if (statement.getTokenType() == BLOCK_STATEMENT) { LighterASTNode block = firstChildOfType(tree, statement, CODE_BLOCK); if (block != null) { LighterASTNode lastStatement = ContainerUtil.getLastItem(getChildrenOfType(tree, block, ElementType.JAVA_STATEMENT_BIT_SET)); return lastStatement != null && completesAbruptly(lastStatement); } } if (statement.getTokenType() == BREAK_STATEMENT || statement.getTokenType() == CONTINUE_STATEMENT || statement.getTokenType() == RETURN_STATEMENT || statement.getTokenType() == THROW_STATEMENT) { return true; } return false; }