code: public void registerFilters() {
      boolean acceptAllInterfaces = true;
  
      // if specified, use the given annotation and / or marker interface
      if (this.annotationClass != null) {
        addIncludeFilter(new AnnotationTypeFilter(this.annotationClass));
        acceptAllInterfaces = false;
      }
  
      // override AssignableTypeFilter to ignore matches on the actual marker interface
      if (this.markerInterface != null) {
        addIncludeFilter(new AssignableTypeFilter(this.markerInterface) {
          @Override
          protected boolean matchClassName(String className) {
            return false;
          }
        });
        acceptAllInterfaces = false;
      }
  
      if (acceptAllInterfaces) {
        // default include filter that accepts all classes
        addIncludeFilter(new TypeFilter() {
          public boolean match(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory) throws IOException {
            return true;
          }
        });
      }
  
      // exclude package-info.java
      addExcludeFilter(new TypeFilter() {
        public boolean match(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory) throws IOException {
          String className = metadataReader.getClassMetadata().getClassName();
          return className.endsWith("package-info");
        }
      });
    }
docs: Configures parent scanner to search for the right interfaces. It can search
  for all interfaces or just for those that extends a markerInterface or/and
  those annotated with the annotationClass