How to detect compileClasspath configuration in project.configurations

We are using some logic similar to this (for checking specific dependency resolution conflicts): failOnVersionConflict only for certain dependencies - #3 by ljacomet

We are only interested in dependencies with implementation configuration, so basically in the compileClasspath and runtimeClasspath.

Is there a way to filter the configuration in the ConfigurationContainer to these types when using project.configuration?