This information might be required when the source code is analyzed in the context of a descendant class. Then the classes in the error message are different. Probably, a test that source class is different from the current class can be performed to avoid printing the same information twice.