public ImmutableSet<QueryTarget> getTargetsFromBuildTargetsContainer(
     Iterable<? extends HasBuildTarget> buildTargetsContainer) {
   ImmutableSortedSet.Builder<QueryTarget> builder = ImmutableSortedSet.naturalOrder();
   for (HasBuildTarget hasBuildTarget : buildTargetsContainer) {
     builder.add(getOrCreateQueryBuildTarget(hasBuildTarget.getBuildTarget()));
   }
   return builder.build();
 }
 @Override
 public int compareTo(HasBuildTarget other) {
   return this.getBuildTarget().compareTo(other.getBuildTarget());
 }