void (@NotNull Project project, @NotNull PsiElement semicolonElement, @NotNull ModPsiUpdater updater) { if (semicolonElement instanceof PsiFile) return; final PsiElement parent = semicolonElement.getParent(); if (parent instanceof PsiEmptyStatement) { final PsiElement lastChild = parent.getLastChild(); if (lastChild instanceof PsiComment) { parent.replace(lastChild); } else { parent.delete(); } } else { semicolonElement.delete(); } }