@Override
protected Set<AnnotatedMethod<? super X>> computeValue() {
ImmutableSet.Builder<AnnotatedMethod<? super X>> methods = ImmutableSet.builder();
Class<? super X> clazz = javaClass;
while (clazz != Object.class && clazz != null) {
for (Method method : AccessController.doPrivileged(new GetDeclaredMethodsAction(clazz))) {
methods.add(BackedAnnotatedMethod.of(method, BackedAnnotatedType.this, sharedObjectCache));
}
clazz = clazz.getSuperclass();
}
return methods.build();