@SuppressWarnings("unchecked")
	// new array instance is OK
	public <T> T[] getServices(Class<T> interfaceClass) {
		List<Object> list = servicesByInterface.get(interfaceClass);
		if (list == null) {
			return (T[]) java.lang.reflect.Array.newInstance(interfaceClass, 0);
		}
		T[] objs = (T[]) java.lang.reflect.Array.newInstance(interfaceClass, list.size());
		return list.toArray(objs);
	}
Get an array of objects that implement the given interfaceClass.
@param interfaceClass interface class for the service
@return zero length array if the interfaceClass was not registered
Ghidra/Framework/Project/src/main/java/ghidra/framework/plugintool/mgr/ServiceManager.java