@Override
	public void domainFileAdded(final DomainFile file) {
		fileIndex.domainFileAdded(file);
		if (list.isEmpty()) {
			return;
		}
		Swing.runLater(() -> {
			for (DomainFolderChangeListener listener : list) {
				listener.domainFileAdded(file);
			}
		});
	}
CopyOnWriteArrayList prevents the need for synchronization
Ghidra/Framework/Project/src/main/java/ghidra/framework/data/DomainFolderChangeListenerList.java