IntentionAction (@NotNull PsiFile file, @NotNull PsiElement duplicateElement) { ProblemDescriptor descriptor = new ProblemDescriptorBase(duplicateElement, duplicateElement, "", null, ProblemHighlightType.GENERIC_ERROR_OR_WARNING, false, null, false, false); return new LocalQuickFixAsIntentionAdapter(new UnnecessaryDefaultInspection.DeleteDefaultFix(), descriptor); }