client/implementation/src/main/java/io/smallrye/graphql/client/impl/typesafe/reflection/TypeInfo.java
/** <code>this</code> and all enclosing types, i.e. the types this type is nested in. */
this and all enclosing types, i.e. the types this type is nested in.
this and all enclosing types i . e . the types this type is nested in .
public Stream<TypeInfo> enclosingTypes() {
        Builder<TypeInfo> builder = Stream.builder();
        for (Class<?> enclosing = getRawType(); enclosing != null; enclosing = enclosing.getEnclosingClass())
            builder.accept(TypeInfo.of(enclosing));
        return builder.build();
    }
public Stream < TypeInfo > enclosingTypes ( ) { Builder < TypeInfo > builder = Stream . builder ( ) ; for ( Class < ? > enclosing = getRawType ( ) ; enclosing != null ; enclosing = enclosing . getEnclosingClass ( ) ) builder . accept ( TypeInfo . of ( enclosing ) ) ; return builder . build ( ) ; }
<code>this</code> and all enclosing types, i.e.
<code > this< / code > and all enclosing types i . e .
// requires JDK 9: return Stream.iterate(this, TypeInfo::hasEnclosingType, TypeInfo::enclosingType);