void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { if (!(element instanceof PsiExpression expression)) { return; } PsiReplacementUtil.replaceExpression(expression, myText); }