These two bodies seem big enough to be methods, like:
```java
case XMLStreamConstants.START_ELEMENT:
    level = newLevelForStartElement(nextEv.asStartElement);
case XMLStreamConstants.END_ELEMENT:
    level = newLevelForEndElement(nextEv.asEndElement());
...
```