void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { final PsiElement codeBlock = element.getParent(); if (!(codeBlock instanceof PsiCodeBlock)) return; final PsiElement classInitializer = codeBlock.getParent(); if (!(classInitializer instanceof PsiClassInitializer)) return; classInitializer.delete(); }