Guidelines introduces in #4261 says: > Custom error names should not be declared twice along the library to avoid duplicated identifier declarations when inheriting from multiple contracts. We should have an automated check for that.