void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { if (!(element instanceof PsiTypeCastExpression typeCastExpression)) { return; } PsiReplacementUtil.replaceExpression(typeCastExpression, replacementString); }