jersey2-guice-impl/src/main/java/com/squarespace/jersey2/guice/BindingUtils.java
public static Key<?> toKey(Injectee injectee) {
    Type type = injectee.getRequiredType();
    Set<Annotation> qualifiers = getQualifiers(injectee);
    return newKey(type, qualifiers);
  }
public static Key<?> toKey(Injectee injectee) {
    Type type = injectee.getRequiredType();
    Set<Annotation> qualifiers = getQualifiers(injectee);
    return newKey(type, qualifiers);
  }
Creates and returns a {@link Key} from the given {@link Injectee}.