@Nonnull
	public MappingResults applyToPrimaryResource(@Nonnull Mappings mappings) {
		mappings = enrich(mappings);
		MappingApplicationListener listener = listeners == null ? null : listeners.createBundledMappingApplicationListener();
		MappingResults results = new MappingResults(workspace, mappings, listener);
		if (aggregateMappingManager != null)
			results.withAggregateManager(aggregateMappingManager);

		// Apply mappings to all classes in the primary resource, collecting into the results model.
		Mappings finalMappings = mappings;
		ExecutorService service = ThreadUtil.phasingService(applierThreadPool);
		WorkspaceResource resource = workspace.getPrimaryResource();
		Stream.concat(resource.jvmClassBundleStream(), resource.versionedJvmClassBundleStream()).forEach(bundle -> {
			bundle.forEach(classInfo -> {
				service.execute(() -> dumpIntoResults(results, workspace, resource, bundle, classInfo, finalMappings));
			});
		});
		ThreadUtil.blockUntilComplete(service);

		// Yield results
		return results;
	}
Applies the mapping operation to the current workspace's primary resource.

@param mappings
		The mappings to apply.

@return Result wrapper detailing affected classes from the mapping operation.
recaf-core/src/main/java/software/coley/recaf/services/mapping/MappingApplier.java