GROOVY-6085: Annotation for inner interface in Java stub should not use dollar notation (partial fix)