public synchronized void filter(FilterFunction<T, ? super C> newFilter) {
		if (newFilter == null) {
			throw new NullPointerException();
		}
		this.filter = newFilter;
	}
Apply a filter function to all subsequent updates

<p>
The given function replaces the current function.

@param newFilter the filter
Ghidra/Framework/Generic/src/main/java/ghidra/async/AsyncReference.java