void (List<TypeAnnotationWriteHelper> typeAnnWriteHelpers) { typeAnnWriteHelpers.forEach(typeAnnWriteHelper -> { StructTypePathEntry path = typeAnnWriteHelper.getPaths().peek(); if (path != null && path.getTypePathEntryKind() == StructTypePathEntry.Kind.NESTED.getId()) { typeAnnWriteHelper.getPaths().pop(); } }); }