NodeList<Statement> statements = node.getStatements();
if (statements.isEmpty()) {
// fall-through without statements at all
AstNode parent = node.getParent();
if (parent instanceof SwitchStatement) {
SwitchStatement switchStatement = (SwitchStatement) parent;
NodeList<SwitchMember> members = switchStatement.getMembers();
int index = members.indexOf(node);
if (index != -1 && index < members.size() - 1) {
return false;
}
}