public <R> R invokeWithStack(Function<List<T>, R> callback) {
		return callback.apply(stack.get().view);
	}
Run the given callback with the stack, returning its value

<p>
This works like {@link #invokeWithStack(Consumer)}, except that the callback can return a
value. Note that a fallback parameter is not taken, since the callback is always invoked. The
callback should implement its own fallback logic.

@param <R> the return type
@param callback the callback
@return the value from the callback
Ghidra/Debug/ProposedUtils/src/main/java/utilities/util/SuppressableCallback.java