    # File lib/yard/registry.rb, line 209
          def all(*types)
            thread_local_store.values.select do |obj|
              if types.empty?
                obj != root
              else
                obj != root &&
                  types.any? do |type|
                    type.is_a?(Symbol) ? obj.type == type : obj.is_a?(type)
                  end
              end
            end + (types.include?(:root) ? [root] : [])
          end