void (IntervalNode<T> node) { IntervalNode<T> insertedNode = findOrInsert(node); // can change if two ranges become the one if (insertedNode != node) { // merge happened insertedNode.addIntervalsFrom(node); } }