public boolean isBoundTo(Class<?> interfaceClass, Class<?> targetClass) { Binding<?> existing = _injector.getExistingBinding(Key.get(interfaceClass)); if(existing instanceof LinkedBindingImpl) { Key<?> key = ((LinkedBindingImpl<?>)existing).getLinkedKey(); return key.getTypeLiteral().getRawType() == targetClass; } return false; }