void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { if (element instanceof PsiExpression expr) { List<PsiExpression> occurrences = collectReplaceableOccurrences(expr); for (PsiExpression occurrence : occurrences) { new CommentTracker().replaceAndRestoreComments(occurrence, myVariableName); } } }