IntentionAction (@NotNull InspectionToolWrapper<?, ?> toolWrapper, @NotNull IntentionAction action) { LocalQuickFix fix = QuickFixWrapper.unwrap(action); PsiFile file = QuickFixWrapper.unwrapFile(action); return new CleanupInspectionIntention(toolWrapper, fix == null ? action : fix, file, action.getText()); }