Either change this to `protected` or change `validateFile()` to `public` for consistency.