void () { myFixture.addClass("@interface MyAnnotation {}"); List<String> names = getInheritorNames(Annotation.class.getName(), true, GlobalSearchScope.allScope(getProject())); assertTrue(names.toString(), names.contains("MyAnnotation")); assertTrue(names.toString(), names.contains(Retention.class.getName())); }