Can't exclude inner classes because Scala expects them to exist.