@Override protected Storage toStorage0() throws IOException { if (tail == null) return new MemoryStorageProvider.MemoryStorage(head.buffer(), head.length()); return new ThresholdStorage(head.buffer(), head.length(), tail.toStorage()); }