default @NotNull ListBinaryTag getList(final @NotNull String key, final @NotNull BinaryTagType<? extends BinaryTag> expectedType) {
    return this.getList(key, expectedType, ListBinaryTag.empty());
  }
Gets a list, ensuring that the type is the same as {@code type}.

@param key the key
@param expectedType the expected list type
@return the list, or a new list if this compound does not contain a list tag
    with the specified key, has a tag with a different type, or the {@link ListBinaryTag#elementType() list type}
    does not match {@code expectedType}
@since 4.0.0
nbt/src/main/java/net/kyori/adventure/nbt/CompoundBinaryTag.java