code: public static @CheckForNull <T extends Descriptor> T findById(Collection<? extends T> list, String id) {
          for (T d : list) {
              if(d.getId().equals(id))
                  return d;
          }
          return null;
      }
docs: Finds a descriptor from a collection by its ID.
  @param id should match {@link #getId}
  @since 1.610