[JENKINS-25682] Fixing interfaceOfSuperclassAnnotated

See discussion in de4e1120d37c3942a96299972eba00e40bf0d80c.