Each time the ClassNameCheck constructor is called it adds to the list of class names given to it, which can later be retrieved by a class static method.