private boolean hasAnyAssociations(Address source, Address dest) {


		Collection<VTAssociation> sourceAssociations = session.getAssociationManager()
				.getRelatedAssociationsBySourceAddress(source);

		if (!sourceAssociations.isEmpty()) {
			return true;
		}

		Collection<VTAssociation> destAssociations = session.getAssociationManager()
				.getRelatedAssociationsByDestinationAddress(dest);

		if (!destAssociations.isEmpty()) {
			return true;
		}

		return false;
	}
Method to determine if the given src or dest addresses have existing association 
@param source the source address
@param dest the destination address
@return true if there are any existin associations, false if none
Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/gui/actions/AutoVersionTrackingTask.java