boolean () { try { return lazyExternalIds.contains(getExternalId()); } catch (Throwable e) { // "getExternalId" might throw when called from constructor, if it accesses subclass fields. // Lazily-registered types have a contract that their "getExternalId" doesn't throw like this, // so getting an exception here is a sign that someone indeed creates their stub type after StubElementTypeHolderEP initialization. return false; } }