private JobState getNextState(JobState state) {
		switch (state) {
			case NOT_RUNNING:
				return LOADING;
			case LOADING:
				return FILTERING;
			case FILTERING:
				return ADD_REMOVING;
			case ADD_REMOVING:
				return SORTING;
			case SORTING:
				return APPLYING;
			case APPLYING:
			case CANCELLED:
			default:
				return DONE;
		}
	}
Returns the next state to transition to after the given state.
@param state the current state to transition from.
@return the next state to be processed after the given state.
Ghidra/Framework/Docking/src/main/java/docking/widgets/table/threaded/TableUpdateJob.java