See https://lgtm.com/projects/g/hibernate/hibernate-search/alerts/
The "Suspicious reference equality test of boxed types" seems particularly bad.