protected final void deregisterService(Class<?> interfaceClass, Object service) {

		for (int i = 0; i < services.size(); i++) {
			ServiceInterfaceImplementationPair s = services.get(i);
			if (s.interfaceClass == interfaceClass && s.provider == service) {
				tool.removeService(interfaceClass, service);
				services.remove(i);
				break;
			}
		}
	}
Returns the combination of required and non-required used services.

@return union of the lists of required and non-required used services.
Ghidra/Framework/Project/src/main/java/ghidra/framework/plugintool/Plugin.java