static KeySpan tail(long from, boolean fromInclusive, Direction direction) {
		if (from == DOMAIN.max() && !fromInclusive) {
			return EMPTY;
		}
		return direction == Direction.FORWARD
				? DOMAIN.closed(fromInclusive ? from : from + 1, DOMAIN.max())
				: DOMAIN.closed(DOMAIN.min(), fromInclusive ? from : from - 1);
	}
Get the span for the tail of a collection

<p>
When {@code direction} is {@link Direction#BACKWARD} this behaves as if a head collection;
however, the implication is that iteration will start from the bound and proceed toward the
minimum.

@param from the lower bound
@param fromInclusive true if the bound includes {@code to}
@param direction the direction, true to create a head instead
@return the span
Ghidra/Debug/ProposedUtils/src/main/java/ghidra/util/database/KeySpan.java