void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { element = element.getParent(); if (!(element instanceof RegExpGroup group)) { return; } RegExpReplacementUtil.replaceInContext(group, group.getPattern().getUnescapedText()); }