boolean (@NotNull OldSwitchStatementBranch branch, boolean hasNext) { int length = branch.getStatements().length; if (length == 0) return (branch.isFallthrough() && hasNext) || (!branch.isFallthrough() && branch.isDefault()); return !branch.isFallthrough(); }