private @NotNull List<Block> buildSubBlocks(@NotNull YAMLFormattingContext context, @NotNull ASTNode node) {
    List<Block> res = new SmartList<>();
    for (ASTNode subNode = node.getFirstChildNode(); subNode != null; subNode = subNode.getTreeNext()) {
      IElementType subNodeType = PsiUtilCore.getElementType(subNode);
      if (YAMLElementTypes.SPACE_ELEMENTS.contains(subNodeType)) {
        // just skip them (comment processed above)
      }
      else if (YAMLElementTypes.SCALAR_QUOTED_STRING == subNodeType) {
        res.addAll(buildSubBlocks(context, subNode));
      }
      else if (YAMLElementTypes.CONTAINERS.contains(subNodeType)) {
        res.addAll(YamlInjectedBlockFactory.substituteInjectedBlocks(
          context.mySettings,
          buildSubBlocks(context, subNode),
          subNode, getWrap(), context.computeAlignment(subNode)
        ));
      }
      else {
        res.add(YAMLFormattingModelBuilder.createBlock(context, subNode));
      }
    }
    return res;
  }
private @NotNull List<Block> buildSubBlocks(@NotNull YAMLFormattingContext context, @NotNull ASTNode node)