In order to fix the issue, I updated the project's dependencies by changing:
implementation 'io.paperdb:paperdb:2.7.1'
to:
implementation 'io.github.pilgr:paperdb:2.7.2'
Fortunately, the import statements remain the same:
import io.paperdb.Book;
import io.paperdb.Paper;