Should I flip the logic?

```java
if (!module.getKind().equals(ElementKind.CLASS)) {
  throw new AssertionError();
}

TypeElement moduleType = ...
```