[misc] Added new checkstyle rules introduced in recent versions of the Checkstyle tool

Only one top level class allowed in a file.