top level classes are also fine, perhaps mention that in the error message
they are also static, but that is probably not known by all users