boolean (@NotNull Project project, @NotNull PsiFile containingFile, @NotNull PsiClass aClass, @NotNull ProgressIndicator progress, @NotNull GlobalUsageHelper helper) { if (isImplicitUsage(project, aClass) || helper.isLocallyUsed(aClass)) return true; if (helper.isCurrentFileAlreadyChecked()) { if (aClass.getContainingClass() != null && aClass.hasModifierProperty(PsiModifier.PRIVATE) || aClass.getParent() instanceof PsiDeclarationStatement || aClass instanceof PsiTypeParameter) return false; } return !weAreSureThereAreNoUsages(project, containingFile, aClass, progress, helper); }