<BUG>UpdatableSortedLinkedListItem next = (UpdatableSortedLinkedListItem) list.next(i);UpdatableSortedLinkedListItem prev = (UpdatableSortedLinkedListItem) list.prev(i);if((next == null) && (prev == null)) {</BUG><CONTEXT>Logger.error(this, "Only 1 element: "+list.head()+" and updating "+i+" on "+this, new Exception("error"));add(i);checkList();return;}<extra_id_0>return;}</CONTEXT>
T next = list.next(i);T prev = list.prev(i);if((next == null) && (prev == null)) {