void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { if (!(element instanceof RegExpBranch)) { return; } final PsiElement prevSibling = element.getPrevSibling(); if (prevSibling != null) { prevSibling.delete(); } else { final PsiElement nextSibling = element.getNextSibling(); if (nextSibling != null) { nextSibling.delete(); } } element.delete(); }