void (@NotNull ActionContext context, @NotNull PsiPattern pattern, @NotNull ModPsiUpdater updater) { PsiElementFactory factory = JavaPsiFacade.getElementFactory(context.project()); pattern.replace(createUnnamedPattern(factory)); }