void (@NotNull Project project, @NotNull PsiElement methodNameIdentifier, @NotNull ModPsiUpdater updater) { final PsiElement method = methodNameIdentifier.getParent(); assert method != null; method.delete(); }