[hibernate-issues] [JIRA] (HV-890) Take visibility into account for method override check