public Set<TraceThread> getThreads(Trace trace) {
		Set<TraceThread> result = new HashSet<>();
		TraceThread lastThread = getEventThread(trace);
		lastThread = steps.collectThreads(result, trace, lastThread);
		lastThread = pSteps.collectThreads(result, trace, lastThread);
		result.add(lastThread);
		result.remove(null);
		return result;
	}
Get the threads involved in the schedule

@param trace the trace whose threads to get
@return the set of threads
Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/model/time/schedule/TraceSchedule.java