}</BUG>
@Override
@Nullable
public ComponentAdapter unregisterComponentByInstance(@NotNull Object componentInstance) {
<BUG>Collection<ComponentAdapter> adapters = getComponentAdapters();

for (final ComponentAdapter adapter : adapters) {
final Object o = getInstance(adapter);
if (o != null && o.equals(componentInstance)) {</BUG>
return unregisterComponent(adapter.getComponentKey());

return instance;
}
}
throw firstLevelException;
}
@Override
@Nullable
public ComponentAdapter unregisterComponentByInstance(@NotNull Object componentInstance) {
for (ComponentAdapter adapter : getComponentAdapters()) {
Object o = getInstance(adapter);
if (o != null && o.equals(componentInstance)) {
return unregisterComponent(adapter.getComponentKey());
