code: public GarbageCollectorMXBean getGarbageCollectorMXBean(String[] names) {
          for (String name : names) {
              GarbageCollectorMXBean bean = this.getGarbageCollectorMXBean(name);
              if (bean != null) { return bean; }
          }
          
          return null;
      }
docs: Get the {@link GarbageCollectorMXBean} with one of the given names.  The
  first matching collector is returned. If no garbage collector exists for
  the given name, then <code>null</code> is returned.
  
  @param names The names of the garbage collector to search for
  
  @return The associated garbage collector or <code>null</code>
  
  @see #getGarbageCollectorMXBeans()