lookupDependency function
Implementation
DependencyConfig? lookupDependency(
InjectedDependency iDep, List<DependencyConfig> allDeps) {
return allDeps.firstWhereOrNull(
(d) => d.type == iDep.type && d.instanceName == iDep.instanceName,
);
}