private void undoHijackedFiles(List<DomainFile> domainFiles) {
		if (!checkRepositoryConnected()) {
			return;
		}

		List<DomainFile> hijackList = new ArrayList<>();
		for (DomainFile domainFile : domainFiles) {
			if (domainFile != null && domainFile.isHijacked()) {
				hijackList.add(domainFile);
			}
		}
		undoHijack(hijackList);
	}
Gets the domain files from the provider and then undoes the hijack on any that are hijacked.
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/projectdata/actions/VersionControlUndoHijackAction.java