}
public void checkSwitchStartsWithDefaultOrCase(Switch node) {
Block body = node.astBody();
if (body != null) {
Statement first = body.astContents().first();
if (first != null && !(first instanceof Case) && !(first instanceof Default)) {
node.addMessage(error(SWITCH_DOES_NOT_START_WITH_CASE, "switch statements should start with a default or case statement."));
}
}
}