}
return false;
}
private boolean hasProxyLocator(TypeElement x, State state) {
ProxyFor proxyFor = x.getAnnotation(ProxyFor.class);
if (proxyFor != null) {
// See javadoc on getAnnotation
try {
proxyFor.locator();
throw new RuntimeException("Should not reach here");
} catch (MirroredTypeException expected) {
TypeMirror locatorType = expected.getTypeMirror();
return !state.types.asElement(locatorType).equals(state.locatorType.asElement());
}