void () { myFixture.addClass("enum MyEnum {}"); List<String> names = getInheritorNames(Enum.class.getName(), true, GlobalSearchScope.allScope(getProject())); assertTrue(names.toString(), names.contains("MyEnum")); assertTrue(names.toString(), names.contains(RetentionPolicy.class.getName())); }