In our plugin, I need to open the Gradle dependencies programmatically. For example, we use the next source code to open Maven dependencies
val file = mavenProject.getFile
val artifact = mavenProject.findDependencies(group, name).asScala.head
val navigation = MavenNavigationUtil.createNavigatableForDependency(project, file, artifact)
Gradle is an external system and I'm trying to understand how to make similar functionality for the Gradle dependencies.
Very grateful for any help!