core/src/com/google/inject/Key.java
public <T> Key<T> ofType(Class<T> type) {
    return new Key<T>(type, annotationStrategy);
  }
public <T> Key<T> ofType(Class<T> type) {
    return new Key<T>(type, annotationStrategy);
  }
public < T > Key < T > ofType ( Class < T > type ) { return new Key < T > ( type , annotationStrategy ) ; }
Returns a new key of the specified type with the same annotation as this key.

@since 3.0
Returns a new key of the specified type with the same annotation as this key .