Find a configuration in the dependency project for source set dependencySrcSet that has the same
type as the configuration in this project, represented by confName
For example, if we declaring dependency for configuration testImplementation
and it is depending on the source set thrift of the dependency project, then
the correct configuration to be retrieved is thriftImplementation.