code: private static List<AnnotatedElement> resolveTargetElements(AnnotatedElement element,
                                                                  EnumSet<FindOption> findOptions) {
          final List<AnnotatedElement> elements;
          if (findOptions.contains(FindOption.LOOKUP_SUPER_CLASSES) && element instanceof Class) {
              final Class<?> superclass = ((Class<?>) element).getSuperclass();
              if ((superclass == null || superclass == Object.class) &&
                  ((Class<?>) element).getInterfaces().length == 0) {
                  elements = ImmutableList.of(element);
              } else {
                  final Builder<AnnotatedElement> collector = new Builder<>();
                  collectSuperClasses((Class<?>) element, collector,
                                      findOptions.contains(FindOption.COLLECT_SUPER_CLASSES_FIRST));
                  elements = collector.build();
              }
          } else {
              elements = ImmutableList.of(element);
          }
          return elements;
      }
docs: Collects the list of {@link AnnotatedElement}s which are to be used to find annotations.