added warning for case when an enumeration has no elements or the name of the class the elements inherited from does not match the name of enumeration object.