docs: @SuppressWarnings("unchecked")
    public Stack<Integer> readEmptyPages(RandomAccessFile file) throws IOException, ClassNotFoundException {
      if(emptyPagesSize == 0) {
        return new Stack<>();
      }
      byte[] bytes = new byte[emptyPagesSize];
      file.seek(file.length() - emptyPagesSize);
      file.read(bytes);
      ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
      ObjectInputStream ois = new ObjectInputStream(bais);
      Stack<Integer> emptyPages = (Stack<Integer>) ois.readObject();
      ois.close();
      bais.close();
      return emptyPages;
    }