Check for instanceName before instance.constructor.displayName, since it's the most specific to the instance and able to override the constructor.