Checks that class which has only private constructors is declared as final.