code: public static @CheckForNull <T extends Descriptor> T find(Collection<? extends T> list, String string) {
          T d = findByClassName(list, string);
          if (d != null) {
                  return d;
          }
          return findById(list, string);
      }
docs: Finds a descriptor from a collection by its class name or ID.
  @deprecated choose between {@link #findById} or {@link #findByDescribableClassName}