PDFBOX-4071: make methods final that shouldn't be changed; make method protected that shouldn't be accessed outside of class hierarchy; move methods to base class