Query<PsiModifierListOwner> (@NotNull PsiClass annotationClass, @NotNull SearchScope scope) { final Query<PsiMember> members = AnnotatedMembersSearch.search(annotationClass, scope); final Query<PsiPackage> packages = AnnotatedPackagesSearch.search(annotationClass, scope); return new MergeQuery<>(members, packages); }