void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { final Handler handler; if (element instanceof PsiLiteralExpression) { handler = new LiteralHandler(); } else if (element instanceof PsiDocComment) { handler = new DocCommentHandler(); } else if (element instanceof PsiComment) { handler = new CommentHandler(); } else if (element instanceof PsiFragment) { handler = new FragmentHandler(); } else { return; } element.replace(handler.buildReplacement(project, element)); }