void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { element = element.getParent(); if (element instanceof RegExpClass regExpClass) { final RegExpClassElement[] elements = regExpClass.getElements(); final PsiElement parent = regExpClass.getParent(); for (RegExpClassElement classElement : elements) { parent.addBefore(classElement, regExpClass); } regExpClass.delete(); } }