private @Nullable Spacing calcChildSpacing(int index2, @Nullable Block block1, @NotNull Block block2) {
    if (block1 instanceof TemplateLanguageBlock) {
      Spacing spacing = ((TemplateLanguageBlock)block1).getRightNeighborSpacing(block2, this, index2 - 1);
      if (spacing != null) return spacing;
    }
    if (block2 instanceof TemplateLanguageBlock) {
      return ((TemplateLanguageBlock)block2).getLeftNeighborSpacing(block1, this, index2);
    }
    return null;
  }
private @Nullable Spacing calcChildSpacing(int index2, @Nullable Block block1, @NotNull Block block2)