String (@NotNull List<@NotNull PyUserTypeRenderer> renderers) { Payload payload = new Payload(); payload.add(COMMAND_HEADER); for (PyUserTypeRenderer renderer : renderers) { payload .add(RENDERER_FIELD_COUNT + CHILD_FIELD_COUNT * renderer.getChildren().size()) .add(buildCondition(renderer.getToType())) .add(buildCondition(renderer.getTypeCanonicalImportPath())) .add(buildCondition(renderer.getTypeQualifiedName())) .add(buildCondition(renderer.getTypeSourceFile())) .add(renderer.getModuleRootHasOneTypeWithSameName()) .add(renderer.isDefaultValueRenderer()) .add(buildCondition(renderer.getExpression())) .add(renderer.isDefaultChildrenRenderer()) .add(renderer.isAppendDefaultChildren()); for (PyUserTypeRenderer.ChildInfo child : renderer.getChildren()) { payload.add(buildCondition(child.getExpression())); } } return payload.getText(); }