@Nullable
  Spacing computeSpacing(@NotNull Block parent, @Nullable Block child1, @NotNull Block child2) {
    if (child1 instanceof ASTBlock && endsWithTemplate(((ASTBlock)child1).getNode())) {
      return null;
    }

    if (child2 instanceof ASTBlock && startsWithTemplate(((ASTBlock)child2).getNode())) {
      ASTNode astNode = ((ASTBlock)child2).getNode();
      if (!isAdjectiveToMinus(astNode)) {
        if (isAfterKey(astNode)) {
          return mySpaceBuilder.getSpacing(parent, getNodeElementType(parent), YAMLTokenTypes.COLON, YAMLTokenTypes.SCALAR_TEXT);
        }
        if (isAfterSequenceMarker(astNode)) {
          return getSpacingAfterSequenceMarker(child1, child2);
        }
      }
      return null;
    }

    Spacing simpleSpacing = mySpaceBuilder.getSpacing(parent, child1, child2);
    if (simpleSpacing != null) {
      return simpleSpacing;
    }

    return getSpacingAfterSequenceMarker(child1, child2);
  }
@Nullable
  Spacing computeSpacing(@NotNull Block parent, @Nullable Block child1, @NotNull Block child2)