boolean (@Nullable PsiAnonymousClass anonymousClass, UsageTarget @NotNull [] targets) { if (anonymousClass == null) { return false; } return qualifiesToTargetClasses(anonymousClass.getBaseClassReference(), targets); }