@Override
	public int compareTo(DefaultGraphDisplayWrapper other) {
		// note: no need for call to Swing, assuming ID is immutable

		// larger/newer values are preferred so they should be first when sorting
		return -(delegate.getId() - other.delegate.getId());
	}
A {@link DefaultGraphDisplay} wrapper created to ensure all accesses to the delegate are on the
Swing thread.  This API is meant to be used concurrently.  We do not want to force clients to
have to understand when to use the Swing thread.  Thus, this class handles that for the clients.
Also, by having Swing accesses managed here, the {@link DefaultGraphDisplay} can assume that all
its work will be done on the Swing thread.
Ghidra/Features/GraphServices/src/main/java/ghidra/graph/visualization/DefaultGraphDisplayWrapper.java