public TagStringWriter endCompound() throws IOException {
    this.level--;
    this.newlineIndent();
    this.out.append(Tokens.COMPOUND_END);
    this.needsSeparator = true;
    return this;
  }
Whether a {@link Tokens#VALUE_SEPARATOR} needs to be printed before the beginning of the next object.
nbt/src/main/java/net/kyori/adventure/nbt/TagStringWriter.java