void (@NotNull Project project, @NotNull PsiMethod method) { if (UnusedSymbolUtil.isMethodUsed(myProject, myFile, method, ProgressIndicatorProvider.getGlobalProgressIndicator(), myGlobalUsageHelper)) { return; } String key; if (method.hasModifierProperty(PsiModifier.PRIVATE)) { key = method.isConstructor() ? "private.constructor.is.not.used" : "private.method.is.not.used"; } else { key = method.isConstructor() ? "constructor.is.not.used" : "method.is.not.used"; } int options = PsiFormatUtilBase.SHOW_TYPE | PsiFormatUtilBase.SHOW_FQ_CLASS_NAMES; String symbolName = HighlightMessageUtil.getSymbolName(method, PsiSubstitutor.EMPTY, options); message = JavaErrorBundle.message(key, symbolName); quickFixes.add(QuickFixFactory.getInstance().createSafeDeleteFix(method)); SpecialAnnotationsUtilBase.processUnknownAnnotations(method, annoName -> quickFixes.add(QuickFixFactory.getInstance().createAddToDependencyInjectionAnnotationsFix(project, annoName))); }