public MetaShadow(Class<?> shadowClass) { while (shadowClass != null) { for (Field field : shadowClass.getDeclaredFields()) { if (field.isAnnotationPresent(RealObject.class)) { field.setAccessible(true); realObjectFields.add(field); } } shadowClass = shadowClass.getSuperclass(); } }