public static <T extends PsiModifierListOwner> Query<T> searchElements(@NotNull PsiClass annotationClass, @NotNull SearchScope scope, Class<? extends T>... types) { return new InstanceofQuery<T>(createDelegateQuery(annotationClass, scope, types), types); }