default SupportsPrefixOperations asPrefixFileIO() {
    if (supportPrefixOperations()) {
      return (SupportsPrefixOperations) this;
    } else {
      throw new IllegalStateException("Doesn't support prefix operations");
    }
  }
Return this cast to {@link SupportsPrefixOperations} if it is.
amoro-format-iceberg/src/main/java/org/apache/amoro/io/AuthenticatedFileIO.java