@Nullable
 public GradleLibraryDependency findLibraryDependency(
     @NotNull final GradleLibraryDependencyId id) {
   final GradleModule module = findGradleModuleByName(id.getModuleName());
   if (module == null) {
     return null;
   }
   final Ref<GradleLibraryDependency> ref = new Ref<GradleLibraryDependency>();
   GradleEntityVisitor visitor =
       new GradleEntityVisitorAdapter() {
         @Override
         public void visit(@NotNull GradleLibraryDependency dependency) {
           if (id.getLibraryName().equals(dependency.getName())) {
             ref.set(dependency);
           }
         }
       };
   for (GradleDependency dependency : module.getDependencies()) {
     dependency.invite(visitor);
     final GradleLibraryDependency result = ref.get();
     if (result != null) {
       return result;
     }
   }
   return null;
 }
 @Nullable
 public GradleModule findGradleModuleByName(@NotNull String name) {
   final GradleProject project = myModel.getGradleProject();
   if (project == null) {
     return null;
   }
   for (GradleModule module : project.getModules()) {
     if (name.equals(module.getName())) {
       return module;
     }
   }
   return null;
 }