protected <L> void notify(List<L> listeners, Consumer<L> method) {
		swing(() -> {
			for (L listener : listeners) {
				method.accept(listener);
			}
		});
	}
A notify method to take the listens to notify, along with the method that should be called
on each listener.

@param <L> the type of the listener
@param listeners the listeners
@param method the method to call
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/compositeeditor/CompositeViewerModel.java