[java-inspections] Experimental ModCommand-based DeletePrivateMethodFix for unused inspection

GitOrigin-RevId: efd9306505048695f1aa1de1851383e170b0c1ca
This commit is contained in:
Tagir Valeev
2024-03-12 10:57:50 +01:00
committed by intellij-monorepo-bot
parent b9d88ce85d
commit 193b2cb477
14 changed files with 323 additions and 122 deletions

View File

@@ -405,6 +405,12 @@ public abstract class QuickFixFactory {
@NotNull
public abstract IntentionAction createSafeDeleteFix(@NotNull PsiElement element);
/**
* @param method method to delete
* @return a fix to remove private method, possibly along with called methods unused elsewhere
*/
public abstract @NotNull ModCommandAction createDeletePrivateMethodFix(@NotNull PsiMethod method);
public abstract @NotNull List<@NotNull LocalQuickFix> registerOrderEntryFixes(@NotNull PsiReference reference,
@NotNull List<? super IntentionAction> registrar);