void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { if (!(element.getParent() instanceof RegExpPattern)) return; element.getNextSibling().delete(); element.delete(); }