if (item.getAttribute(LookupItem.DO_AUTOCOMPLETE_ATTR) == null) {
item = null;
}
}
if (item != null) {
<BUG>if (item.getObject()instanceof DeferredUserLookupValue) {
</BUG>
if (!((DeferredUserLookupValue)item.getObject()).handleUserSelection(item, context.project)) {
return;
}

if (item.getAttribute(LookupItem.DO_AUTOCOMPLETE_ATTR) == null) {
item = null;
}
}
if (item != null) {
if (item.getObject() instanceof DeferredUserLookupValue) {
if (!((DeferredUserLookupValue)item.getObject()).handleUserSelection(item, context.project)) {
return;
}
