renaming to hasAnnotatedMethod