void (@NotNull Project project, @NotNull PsiClass aClass) { if (UnusedSymbolUtil.isClassUsed(project, myFile, aClass, ProgressIndicatorProvider.getGlobalProgressIndicator(), myGlobalUsageHelper)) { return; } String pattern; if (aClass.getContainingClass() != null && aClass.hasModifierProperty(PsiModifier.PRIVATE)) { pattern = aClass.isInterface() ? "private.inner.interface.is.not.used" : "private.inner.class.is.not.used"; } else if (aClass.getParent() instanceof PsiDeclarationStatement) { // local class pattern = "local.class.is.not.used"; } else if (aClass instanceof PsiTypeParameter) { pattern = "type.parameter.is.not.used"; } else if (aClass.isInterface()) { pattern = "interface.is.not.used"; } else if (aClass.isEnum()) { pattern = "enum.is.not.used"; } else { pattern = "class.is.not.used"; } formatUnusedSymbolHighlightInfo(myProject, pattern, aClass); }