List<TypeAnnotationWriteHelper> ( StringBuilder sb, List<TypeAnnotationWriteHelper> typeAnnWriteHelpers ) { return typeAnnWriteHelpers.stream().filter(typeAnnWriteHelper -> { StructTypePathEntry path = typeAnnWriteHelper.getPaths().peek(); if (path == null) { typeAnnWriteHelper.writeTo(sb); return false; } return true; }).collect(Collectors.toList()); }