/**
  * Gets the maximum number of annotations within the specified containers.
  *
  * @param containers the containers to scan for the upper bound
  * @return the maximum number of annotations
  */
 public int getUpperBound(final Collection<? extends AnnotationContainer> containers) {
   int maximum = 0;
   for (AnnotationContainer container : containers) {
     maximum = Math.max(maximum, container.getNumberOfAnnotations());
   }
   return maximum;
 }
 /**
  * Creates a new priorities detail.
  *
  * @param priority the priority to show
  * @param owner owner of the build
  * @param container annotation container
  * @param defaultEncoding the default encoding to be used when reading and parsing files
  * @param header header to show
  * @return the priority detail
  */
 protected PrioritiesDetail createPrioritiesDetail(
     final Priority priority,
     final AbstractBuild<?, ?> owner,
     final AnnotationContainer container,
     final String defaultEncoding,
     final String header) {
   return new PrioritiesDetail(
       owner,
       detailFactory,
       container.getAnnotations(priority),
       priority,
       defaultEncoding,
       header);
 }
 /** {@inheritDoc} */
 @Override
 protected void attachLabelProvider(final AnnotationContainer container) {
   container.setLabelProvider(
       new CustomAnnotationsLabelProvider(container.getPackageCategoryTitle()));
 }
 /** {@inheritDoc} */
 public int compareTo(final AnnotationContainer other) {
   return getName().compareTo(other.getName());
 }