public DomainObjectSet<NativeBinary> getBinaries(NativeLibraryRequirement requirement) {
   Project project = findProject(requirement);
   LibraryContainer libraryContainer =
       (LibraryContainer) project.getExtensions().findByName("libraries");
   if (libraryContainer == null) {
     throw new LibraryResolveException(
         String.format("Project does not have a libraries container: '%s'", project.getPath()));
   }
   return libraryContainer.getByName(requirement.getLibraryName()).getBinaries();
 }
 private Project findProject(NativeLibraryRequirement requirement) {
   return projectFinder.getProject(requirement.getProjectPath());
 }