code: public @CheckForNull <U extends T> U get(@Nonnull Class<U> type) {
          for (T ext : this)
              if(ext.getClass()==type)
                  return type.cast(ext);
          return null;
      }
docs: Looks for the extension instance of the given type (subclasses excluded),
  or return null.